Re:Why Rust ditched pure functions
by catnaroek on Friday December 20, 2013 @09:54AM
(#6941621)
Agreed there. But, on the other hand, D misses out on statically checked resource management, and IMO that is more important than purity in the niche Rust and D are targeted at (systems development). Of course, nothing prevents a language from having both. :-)
[ Parent
| on HN ]
Re:Why Rust ditched pure functions
by WalterBright on Friday December 20, 2013 @01:41PM
(#6943145)
Purity has a large advantage when writing concurrent code, as pure functions don't need to be synchronized.
This is why D has enforced purity (via an attribute) rather than inferred purity.