3 ms·
Having SML (or at least OCaml) as a known language definitely would help engineers when they get into the industry and start using Rust. Back in the day when I
by cmrdporcupine 2y ago
Having SML (or at least OCaml) as a known language definitely would help engineers when they get into the industry and start using Rust.
Back in the day when I played with these things I preferred SML/NJ over OCaml, but OCaml "won" the battle for headspace.
I'd consider using OCaml for new projects, I really like the language family.
- xyproto 2y agoI also prefer SML over OCaml. I wonder how F# feels and want to give it a shot.
- int_19h 2y agoF# doesn't have many of OCaml's more advanced features. In particular, no functors and no polymorphic variants. Also the OO system is basically .NET, which isn't that surprising (but means that you don't get the neat row typing with inference that OCaml does). OTOH some of the choices it makes are a bit more pragmatic - e.g. arithmetic is overloaded for ints and floats, locals can be marked as mutable similar to record fields, and fields are scoped to record types (so different types can use the same field name).