Re:Criticizing Hare language approach for generic data struc...
by zozbot234 on Wednesday May 04, 2022 @01:51PM
(#31263655)
Haskell uses a garbage collector to enable closures to extend the lifetimes of values they capture within their context. You can do the exact same thing in Rust by using Rc or Arc, it just isn't required in most cases because the borrow checker can verify that the value is not outlived by the closure.
[ Parent
| on HN ]
There are no comments on this comment yet.