3 ms·
I've seen Rust written in imperative style, and it was clear to me in most of the cases. I think it's more the difference between imperative and functional styl
by khedoros1 10y ago
I've seen Rust written in imperative style, and it was clear to me in most of the cases. I think it's more the difference between imperative and functional styles that's throwing people for a loop.
- Gankro 10y agoYeah this is clearly someone who's into FP. If you rewrite this code to replace the map/sum with a for loop it's basically identical in length, while being completely idiomatic.
- bluejekyll 10y agoIt took me some tome to embrace this style in Rust, but now o love it. It cuts down on boiler plate code.
- AnimalMuppet 10y ago> I think it's more the difference between imperative and functional styles that's throwing people for a loop. Pun intended? If so, nicely done.