News for hackers. Stuff that matters.
Re:Try OCaml by k__ on Friday September 07, 2018 @07:00AM (#17933320)
I say 30%!

I have no idea, Reason is pretty rad, but I have the feeling since 3.0 it lost steam. I mean they still didn't add async/await

Re:Try OCaml by TheAsprngHacker on Friday September 07, 2018 @07:49AM (#17933514)
To my knowledge, Reason is just an alternate syntax over OCaml and the two can be converted to each other. Thus, Reason should have the same semantics as OCaml. As OCaml isn’t just targeted at JavaScript, IMO adding async/await sugar for Reason wouldn’t make sense. (I assume that you mean syntax that desugars to JS promises. Correct me if I misunderstood.)

Although, it would be pretty cool if OCaml got some kind of do-notation (like Haskell), a generalization of async/await sugar for any monad structure...

Re:Try OCaml by thedufer on Friday September 07, 2018 @08:59AM (#17933878)
I think you're looking for let syntax (https://github.com/janestreet/ppx_let). It is syntactic sugar for monads and applicatives.