3 ms·
There's some neat stuff in the Reason syntax, apart from the make-it-less-weird-for-those-coming-from-JS/Java/C#/etc., for instance: JSX[0] and named curried fu
by cies 10y ago
There's some neat stuff in the Reason syntax, apart from the make-it-less-weird-for-those-coming-from-JS/Java/C#/etc., for instance: JSX[0] and named curried functions[1]. Both are fitting in really nice when doing FE dev't like with `react-reason`[2].
If you are interested in this, I recommend some talks. First one by Cheng Lou, a main contributor of Reason and FB employee on React Conf 2017[3]. And a talk by Sean Grove[4] on Reason in general.
With the power of FB behind this new techonolgy (they have currently written 25% of messenger.com in Reason), this might well become very big. A general purpose strongly typed functional prog lang, that has a vast ecosystem, now an approachable syntax, and compiles to both native and JS. Sounds good nuh?
[0]: https://facebook.github.io/reason/#diving-deeper-jsx https://facebook.github.io/reason/#diving-deeper-jsx
[1]: https://facebook.github.io/reason/#diving-deeper-curried-functions https://facebook.github.io/reason/#diving-deeper-curried-fun...
[2]: https://github.com/chenglou/reason-react-example/blob/master/src/todomvc/app.re https://github.com/chenglou/reason-react-example/blob/master...
[3]: https://www.youtube.com/watch?v=_0T5OSSzxms https://www.youtube.com/watch?v=_0T5OSSzxms
[4]: https://www.youtube.com/watch?v=8LCmLQ1-YqQ&t=517s https://www.youtube.com/watch?v=8LCmLQ1-YqQ&t=517s
- thedufer 10y agoCan you explain how named curried functions differ from ocaml's named arguments? It looks exactly the same, other than the syntax.
- chenglou 10y agoThey are the same. I don't think cies was implying they were different.
- thedufer 10y agoThe wording seems to pretty clearly say otherwise, but I appreciate the confirmation that I'm not missing anything.
- jordwalke 10y agoThey're not different than OCaml's, but Reason's JSX is an interesting / useful application of labeled arguments that appeals to React developers.
- cies 10y agoMy bad. They're the same (as others noted). Was not familiar with them.