4 ms·
It isn't, though. I recently started learning Rust and've basically been having to teach myself loops again. For over 10 years, I've not constructed a single lo
by hurril 4y ago
It isn't, though. I recently started learning Rust and've basically been having to teach myself loops again. For over 10 years, I've not constructed a single loop; I've been getting it done by constructing my program with different combinators and recursion instead. And I've not ever felt that what I'd done would have been better with a loop.
It's even very seldomly that I even need if-statements. It's clearly a difference and I really would like to think of myself that I'm not _that_ deep into the cool aid.
This has been done with Scala, F#, Haskell and Elm.
With Rust, not only do loops feel more natural, they're very clearly the right tool.