Re:Trying Rust for web services
by DasIch on Thursday October 01, 2015 @02:02PM
(#10313161)
How about lexical memory management as a nod to dynamic vs. lexical scoping?
[ Parent
| on HN ]
Re:Trying Rust for web services
by steveklabnik on Thursday October 01, 2015 @02:09PM
(#10313235)
That might work for now, but something we're working on for the future is making borrows non-lexical, so....
Borrows may be non-lexical in the future, but deallocation via ownership will always be at the end of a lexical scope. Not only would eager deallocation be bad for performance, it's also a backcompat hazard at this point.