The Reason for ReasonML
summary
ReasonML is a syntax extension to OCaml that produces readable JavaScript via BuckleScript and bsb (run with --w), bringing sound static types and heavy type inference to typical JS web apps. The presenter shows a working slide app built with ReasonReact that uses refs for keydown handlers, option types to avoid null errors, and bindings to highlight.js and showdown via bs.module/bs.val — interop works but writing correct bindings takes trial and error; compilation is reported fast.
AI-written summary · about
chapters (22)
- 0:00Start
- 2:202018 Stack Overflow Developer Survey
- 6:22Basics
- 7:28Why Are Types So Special in Reason
- 9:23Tuples
- 11:11Closed Objects
- 12:14Open Objects
- 14:58Pattern Matching
- 19:57Option Type
- 21:12Extras
- 23:09Use Functions and Symbols from Other Languages
- 24:46Relationship between Reason and Javascript
- 25:19Call to Action
- 26:36Paco Script
- 27:37The Minimum Configuration File
- 29:11Buccal Directives
- 31:39Syntax Highlighting
- 34:03Check for Existing Bindings
- 34:59Ps Dependencies
- 36:04Use Your Reason Code in Your Javascript
- 37:27Module Types
- 39:20Recap







