News for hackers. Stuff that matters.
Re:Criticizing Hare language approach for generic data struc... by amelius on Wednesday May 04, 2022 @11:42AM (#31262062)
You can't do proper functional programming without garbage collected closures. There is a reason why Haskell has a garbage collector ... and it's not "the borrow checker wasn't invented yet".
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.