Hacker News new | ask | show | jobs
by maikklein 4343 days ago
I was pleasantly surprised by the combination of pure functions..

But Rust doesn't have pure functions.

2 comments

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?

You've hit the nail on the head!
Hmm, perhaps I was a little overzealous in my attribution, I'll amend that, thank you.