5 ms·
I was pleasantly surprised by the combination of pure functions.. But Rust doesn't have pure functions.
by maikklein 12y ago
I was pleasantly surprised by the combination of pure functions..
But Rust doesn't have pure functions.
- simias 12y agoWell, rust does have pure functions (as most programming languages) you just can't tag a function as such to have the compiler enforce the purity for you (it used to, though). That being said I'm not sure why the author mentioned that point in particular. Maybe he feels that having immutable-by-default semantics encourages writing pure functions?
- PudgePacket 12y agoYou've hit the nail on the head!
- PudgePacket 12y agoHmm, perhaps I was a little overzealous in my attribution, I'll amend that, thank you.