3 ms·
> That's a big part of why Haskell manages to be neck-and-neck with C despite being functionally pure. Come on... that's not what you typically get with Haskel
by chrisseaton 6y ago
> That's a big part of why Haskell manages to be neck-and-neck with C despite being functionally pure.
Come on... that's not what you typically get with Haskell, is it.
- nicoburns 6y agoRust gives you FP-style without loads of copies and C-like performance. Immutable data-structures aren't idiomatic, but it's ownership gives you most of the same benefits.
- entha_saava 6y agoAnd many string types, like Haskell /s
- zozbot234 6y agoThe nice thing about Rust is that it gives you the main benefits of FP even when you're not programming in "FP style". The Rust "sharing xor mutability" default model provides underlying semantics and ease of analysis that's quite comparable to what you get with a pure-functional language. Of course extended mutability as with Cell<>, RefCell<> etc. undermines this, but these are only used when necessary.