News for hackers. Stuff that matters.
Re:ReScript 10.0 by 0x37 on Thursday September 29, 2022 @03:46AM (#33017627)
With only a quick look into this project it looks very interesting and appealing, but I'm afraid it might be an evolutionary dead-end in the Javascript world similar to Facebook's Flow and CoffeeScript. Any opinions to the contrary?
Re:ReScript 10.0 by sondr3 on Thursday September 29, 2022 @03:56AM (#33017690)
I think they are more at the opposite side of the spectrum, languages like Flow, CoffeeScript and TypeScript are more akin to supersets of JavaScript (with potentially "simpler" syntax). Languages like ReScript and PureScript come from the functional world that as a feature compile to JS, but where the type system are sound without any of the baggage from JS and features that are (at least as of now) not available in JS like pattern matching. They are not an evolution of JS like Flow or CoffeeScript, but are rather for developers who want something more than just "JavaScript with types".
Re:ReScript 10.0 by azangru on Thursday September 29, 2022 @04:09AM (#33017749)
Probably better comparisons would be Clojurescript, Elm, or Purescript. Something that does't even pretend to be javascript anymore.