3 ms·
Why oh why the brackets? Obfuscates currying too much. let make ::message ::extraGreeting=? _children => ... let make = (~message, ~extraGreeting=?, _c
by GreaterFool 9y ago
Why oh why the brackets? Obfuscates currying too much.
let make ::message ::extraGreeting=? _children => ...
let make = (~message, ~extraGreeting=?, _children) => ...
Plain OCaml:
let make ~message ?extraGreeting _children = ...
Fortunately bucklescript is a completely separate project. After this change I might ditch Reason and just write OCaml. There were some little improvements with Reason vs OCaml but now OCaml appears to be a clear winner!
- chenglou 9y agoI've given an answer to currying at https://news.ycombinator.com/item?id=15573956 https://news.ycombinator.com/item?id=15573956 BuckleScript's author and I collaborate on a daily basis, btw. So you're definitely welcome to use _just_ BuckleScript. I'm not too sure your reaction is genuine happiness for vanilla OCaml, but if it really is, then our mission's accomplished (https://reasonml.github.io/guide/what-and-why#why-reason https://reasonml.github.io/guide/what-and-why#why-reason). If not, sorry about that.