News for hackers. Stuff that matters.
Re:A ReasonReact Tutorial by erokar on Thursday July 06, 2017 @08:02AM (#14709690)
I'm not complaining that JS isn't Haskell. Underneath the C/Java syntax JS is a small, simle, Lispy, dynamic language — if you like that kind of thing. JS' syntax hide that. CoffeeScript helped reveal it.

> In other words, you can have good looking FP support with braces and semicolons.

Of course. But why would you?

Re:A ReasonReact Tutorial by jasim on Thursday July 06, 2017 @09:22AM (#14710173)
I love braces and semicolons and my biggest gripe with CoffeeScript and HAML and Python was that they used space to delimit blocks. The good thing about braces is that moving code around is easy and it makes auto-formatting possible. refmt, prettier etc. are all amazing to have.

But in terms of syntactic preferences, it is quite subjective and I wouldn't claim there is one true answer.