3 ms·
Well, 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 us
by simias 12y ago
Well, 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!