Reason lets you write simple, fast and quality type safe code while leveraging both the JavaScript & OCaml ecosystems.
Petr Šnobelt |
@petrsnobelt
oCaml
- ML based language
- Strong static type system with type inference
- Functional and immutable by default
- pattern matching
- First prototype of React was written in SML
- Long history
- Garbage collected
REASON IS...
- 📝 New syntax for OCaml
- 🌊 Compiler workflow
- 🛁 Docs, libs, utils
Notes
- Compiles to JS, openGL, WebAssembly, Microkernels
- 50% FB messanger is written in reasonML
- Strong support for React (JSX is supported)
- Syntax Cheatsheet
- Variants
What is not so great
- Generation of binding to js
- Missing operator overload
- + for int
- ^ for string
- +. for float
- similar for fns
- Documentation is on multiple places
- Working with non-reason is unpleasant
Links
- https://reasonml.github.io/
- https://github.com/vramana/awesome-reasonml
- https://marcelcutts.github.io/reason-react-talk/
Hint: google for "ReasonML"
Questions
Petr Šnobelt
petr.snobelt@gmail.com
@petrsnobelt