Advertisement
Guest User

Untitled

a guest
Oct 8th, 2023
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.25 KB | None | 0 0
  1.  
  2. yeah, there was a big effort to make OCaml more approachable by rewriting the compiler frontend and providing a JS-like syntax (Reason) – this came with a lot of baggage too, because when people expect it to feel like JS, they expect similar libraries to JS, similar programming styles, etc. So it isn't trivial to pull off.
  3.  
  4. But since Reason was just a new syntax, this meant it could be used for both native and also JS development – and on the native side of course you break the abstraction and realize you have to work with all the OCaml tooling.
  5.  
  6. Some people liked that, some people didn't. It created tension especially around how to write Reason code because the native side followed OCaml conventions whereas the JS side followed JS-like conventions.
  7.  
  8. Fast forward a few years, and Reason splits into Reason and ReScript. So now you have OCaml, Reason (through Melange), and ReScript. The latter supports only JS as a compilation target, and is slowly moving further and further away as a language (with new type-system and language features that make it better for interop with JS).
  9.  
  10. A lot of cognitive overhead, enough for many newcomers to just use TypeScript tbh, so definitely a good cautionary tale of refocusing/splitting ecosystems and communities.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement