9 ms·
That, and that it has better support for imperative features than most ML languages. You can combine your fancy combinators with mutable variables and for-loops
by nicoburns 7y ago
That, and that it has better support for imperative features than most ML languages. You can combine your fancy combinators with mutable variables and for-loops when just want to get something done quickly.
In general, Rust just has all the little details right. It's hard to describe that in concrete terms, but it makes using it a very smooth and satisfying process. I get a similar feeling when using postgres: there's usually a nice way of doing what I want, and I rarely come up against unwelcome surprises.
- umanwizard 7y agoThanks! I actually do use Rust as my main professional language (since my company’s product is based on timely-dataflow and differential-dataflow, so it was the only natural choice). But I’m always curious about how it stacks up against other languages I’m less familiar with that share similar ideas.
- momentoftop 7y agoML has always had easy mutables in the form of references, and the closest deployed language to Standard ML (Ocaml and Reason), has always had for-loops and while-loops. Mutable references are used frequently. Rust is great because it's low level, high-performance, non-garbage collected and it's primary inspiration for higher-level programming is languages like ML and Haskell.
- scns 7y agoHaving used OCaml and Reason i'd say the documentation and compiler messages of Rust are more helpful IMHO