3 ms·
Yes, if your only heuristic of 'falling behind' is 'not getting the latest OCaml features'. It turns out that even OCaml from a few years ago is perfectly usabl
by yawaramin 6y ago
Yes, if your only heuristic of 'falling behind' is 'not getting the latest OCaml features'. It turns out that even OCaml from a few years ago is perfectly usable to build an excellent JavaScript-focused compiler.
- dmit 6y agoI think "getting OCaml features at a slower rate than OCaml itself does" counts as "falling behind", yes. 2015 OCaml was an excellent language. 2020 OCaml is exquisite.
- drbojingle 6y agoWhat feature of 2020 OCaml do you think would convince JS developers to use Reason?
- sgrove 6y agoMonadic let syntax would be a big win (allows for async/await-like constructs) in Bucklescript, and inline variant records have been nice once or twice (I see reason newcomers at dojos do this naturally almost every time shortly after introducing variants).
- yawaramin 6y agoInline records are available since BS 6 :-)
- yawaramin 6y ago@dmit, we will have to agree to disagree there; the reality is, only a very few people are using the absolute latest OCaml features. If you look at the Opam package build matrix: http://check.ocamllabs.io/ http://check.ocamllabs.io/ ... most Opam packages are building against 4.02 to 4.05. And OCaml in 2020 is great but it's still not close to what we need for wider adoption in its chosen native compilation space. BuckleScript/Reason is a different strategy, which actually does seem to be working for that goal.