News for hackers. Stuff that matters.
Re:Building native macOS applications with Rust by k__ on Wednesday November 30, 2016 @10:50AM (#13071655)
https://doc.rust-lang.org/book/closures.html#closures-and-th...

Doesn't seem too crazy, as long as you don't want to mutate the variables the function closed over.

Re:Building native macOS applications with Rust by Manishearth on Wednesday November 30, 2016 @11:54AM (#13072305)
Mutating isn't hard either, and if it does get hard you can stick things in a Cell or RefCell.
Re:Building native macOS applications with Rust by k__ on Wednesday November 30, 2016 @12:04PM (#13072412)
It' not hard, it's just a bit more code than in JavaScript :)