4 ms·
On the top of my head, the major features to come are: * Compile to WASM * Parametric modules (OCaml functors) * Structural (as opposed to nominal) unions *
by Skinney 2y ago
On the top of my head, the major features to come are:
* Compile to WASM
* Parametric modules (OCaml functors)
* Structural (as opposed to nominal) unions
* Improvements to the Ports (FFI) mechanism while still retaining purity
* Actors(?)
* Support more builtin Browser and NodeJS APIs out of the box
- anentropic 2y agoWhy not ReScript?
- Skinney 2y agoReScript isn't pure. The big thing with Gren is that it's easy to anticipate what your code will do, even when calling functions you don't know the implementation of. It's hard to do this when function calls can mutate state, throw unchecked exceptions or perform arbitrary and unmanaged side effects. Gren tries to do without these (mutation, unchecked exceptions, unmanaged side-effects) without requiring too much effort on the developer's part. In return, you can easier reason about the behaviour of your program. Elm proved, at least to me, that this was good way to write programs. Gren simply tries to take it a step further by including first class support for backend applications and command line tools through NodeJS.
- zellyn 2y agoYou may be interested in roc-lang.org, which does some of those.
- Skinney 2y agoThank you! I'm already aware of Richard's project and I wish it all the best. You'll find that Gren and Roc differs in certain aspects, though, at least today. It'll be interesting to see how the languages evolve :)