|
|
|
|
|
by zozbot234
1221 days ago
|
|
Rust has closures and does not use a GC. The borrow checker just makes sure that a closure never outlives its captures or any of its references. The most prominent difference between Rust and Haskell is that Haskell uses lazy evaluation throughout; it's the language's unique selling point. Rust doesn't even have generators in the stable variety of the language yet, although they are internally used to implement async/await. |
|
(Rust has your C-like run of the mill function references too. People should emphasize those more, because differently from closures, those work very well.)