4 ms·
Have you seen Reason yet? It has pattern matching. https://reasonml.github.io/docs/en/pattern-matching.html https://reasonml.github.io/docs/en/pattern-matching
by StreamBright 9y ago
Have you seen Reason yet? It has pattern matching.
https://reasonml.github.io/docs/en/pattern-matching.html https://reasonml.github.io/docs/en/pattern-matching.html
- soulnothing 9y agoI haven't yet thank you. I like the ocaml influence.
- bratsche 9y agoSince you mentioned F# above, have you seen Fable? http://fable.io/ http://fable.io/
- thangngoc89 9y agoReasonML is OCaml. The syntax is different but the semantic is the same, it uses the same OCaml compiler
- boubiyeah 9y agoThat's pretty much the only thing I like from reason. it's still very goofy. <strong> (ReasonReact.stringToElement(string_of_int(count))) </strong> Compared to <strong>{ count }</strong> in ReactTS... The interop with JS is pretty verbose too. The tooling... Doesn't work at all? :p It might get there eventually but it doesn't seem like facebook has more than 1 or 2 engineers working on it.
- girvo 9y ago<strong> (se(count)) </strong> I’ve just built a tiny utils.re file that holds a couple of small modules, like the se function above. The built in reducerComponent with a completely flat pattern matching on the action types, values, arity and more is so lovely that I hate going back to regular React + Redux
- rhizome 9y ago(ReasonReact.stringToElement(string_of_int(count))) MV. Bold choice.