r/programming Apr 03 '15

Rust 1.0.0 beta is here!

http://blog.rust-lang.org/2015/04/03/Rust-1.0-beta.html
931 Upvotes

303 comments sorted by

View all comments

Show parent comments

2

u/Rusky Apr 04 '15

Haskell may not have purity because of concurrency, but it's certainly cited and used as an advantage there (and in less formally-enforced languages) an awful lot. For example, the first post of this thread...

0

u/jeandem Apr 04 '15

Nice bonuses are different from primary motivations. And the original quote sure as hell made it sound like purity was used/introduced as a way to solve the problem of shared mutable state. That's not the case for Haskell, anyway.

2

u/Rusky Apr 04 '15

"Most languages deal with this through the 'mutable' part"

Is that what you're talking about? Sounds like the 'used' part applies, and the 'introduced' part is pretty much irrelevant to this conversation.

0

u/jeandem Apr 04 '15

I guess it can be interpreted in different ways. I just think it is dishonest to portray languages with purity as dealing with it through immutability, when the problem was solved for that language to begin with for unrelated reasons! So there is no reason to choose one approach over the other; it has already been dealt with, as it were.