4 ms·
I took ocaml for a spin a couple months ago and compared to more recently created languages it seems a bit crufty. If they can simplify the build system to be
by robohamburger 10y ago
I took ocaml for a spin a couple months ago and compared to more recently created languages it seems a bit crufty.
If they can simplify the build system to be on par with something like cargo that would be swell.
Also: having rust style traits or haskell classes would be amazing. Also macros that aren't obscure and hard to use compiler plugins please :)
Hopefully it ends up being more than just questionable sugar around ocaml and actually adds some sorely needed language features.
- wtetzner 10y agoI agree on the build system and macros. As for traits/type classes, there's work being done on implicit modules to fill that role. [1] [1] http://www.lpw25.net/ml2014.pdf http://www.lpw25.net/ml2014.pdf
- nv-vn 10y agoTry out the OASIS build system. It's very similar to Cargo/Cabal (although it's separate from the package manager) in that you basically declare what you're working with and it does all the building for you. It's super simple to use and is good enough for 95% of use cases. As for traits/type classes, this is in development with the modular-implicits (experimental) fork of the compiler. It's highly likely that some form of this will make it into the language soon, but for now you can already start playing around with it if you want. It's super cool because it uses the module system to express type classes/traits rather than adding more parts to the language.
- pathsjs 10y agoI tried it. I found no easy way to have dependencies isolated per project. Any suggestions?