3 ms·
I use F# a lot and like it, but imperative code was problematic to do. Now using Rust, I think I'm even more functional than ever. One key thing is that I can
by mamcx 5y ago
I use F# a lot and like it, but imperative code was problematic to do.
Now using Rust, I think I'm even more functional than ever. One key thing is that I can put a simple loop here and there (inside functions) and still the interfaces are functional.
- pharmakom 5y agoF# 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.