4 ms·
F# has mutable and while loops also. I’m surprised you are finding Rust good for functional programming to be honest. It lacks a do-notation system, currying b
by pharmakom 5y ago
F# has mutable and while loops also.
I’m surprised you are finding Rust good for functional programming to be honest. It lacks a do-notation system, currying by default and guaranteed tail-call optimisation.
- mamcx 5y ago> It lacks a do-notation system, currying by default and guaranteed tail-call optimisation. And instead gives plain structs with separate impls, traits like Into/From that cut tons of custom-made transformation code, more uniform iterators (in F# some things not implement iterators that other things do, because everyone need to implement again all of them) and other idioms that are very practical. Is a tradeoff, sure.