First impression of ReasonML + React after the workshop:
+ Loved the type checking
+ Syntax is pretty natural (mostly... ## is weird)
+ Pattern matching is nice
- Cryptic error messages
- Annoying having to constantly cast types with ReasonReact
Conversation
What casting were you running into?
2
Like, you can't just render a string, you have to call ReactReason.string(...)
1
2
Ah, right! Yeah I did notice that in the ReasonReact docs... seems like an interesting design decision, seeing as it is a common case. Elm's `Html.text` is a little more succinct, which is nice.
Other languages get around this in fancier ways, but would require changing OCaml's type system, and could reduce the quality of error messages somewhat, so in Reason's case it might be better to just shorten the function name. 🤔
1
that's doable in userland too if it really annoys you. `let s = ReasonReact.string`


