News for hackers. Stuff that matters.
Re:Reason 3 by yawaramin on Saturday October 28, 2017 @01:18PM (#15575863)
Yes, as far as I know Reason is the first project to try to have auto-currying semantics with tupled syntax. It's definitely a bit of an experiment.

Not sure what optimisation problem you're referring to, Reason and OCaml underlying AST are exactly the same. There are no actual tuples unless the programmer is creating actual tuples.

Re:Reason 3 by bjz_ on Saturday October 28, 2017 @01:26PM (#15575899)
I was referring to chenglou's comment[1] where he said "It also prevents some optimizations and new type features."

[1]: https://news.ycombinator.com/item?id=15573956

Re:Reason 3 by glennsl on Sunday October 29, 2017 @12:26AM (#15577965)
I think what @chenglou was referring to are issues like the "value restriction" [1] and the need to wrap "uncurried" FFI functions with a function that "adapts" it to curried form, thereby adding a layer of indirection.

Reason does not solve these, they're problems inherent to the underlying language and the choices made. I think the point being made was just that currying isn't a clear step forward, but causes some problems as well.

[1]: http://mlton.org/ValueRestriction

Re:Reason 3 by bjz_ on Monday October 30, 2017 @08:21AM (#15584444)
Yeah, definitely agree that there are trade-offs with currying when mapping it to a compilation target like JS, and I am consistently impressed by Bucklescipt's ability to convert the curried versions of functions to regular JS calls. That said, I do still think that it's worth the trouble!