News for hackers. Stuff that matters.
Re:Try Out Rust IDE Support in Visual Studio Code by Rusky on Saturday August 19, 2017 @01:05PM (#15054399)
That's fair, the ecosystem certainly isn't ready for every use case.

What specifically do you mean by "the way the borrow checker handles callbacks"?

Re:Try Out Rust IDE Support in Visual Studio Code by pjmlp on Saturday August 19, 2017 @03:03PM (#15055018)
It is described in the Non-lexical lifetimes RFC under "Closure desugaring".

https://github.com/nikomatsakis/nll-rfc/blob/master/0000-non...

Basically if you have a struct to represent, lets say a Window, and inside of it try to reference instance variables on a closure that would handle a button click for example, self will be moved.

There are a few workarounds, but all of them are less ergonomic than any mainstream GUI toolkit.