News for hackers. Stuff that matters.
Re:A Week with Mozilla's Rust by pcwalton on Thursday August 22, 2013 @08:41AM (#6256720)
> defer is just a useful syntactic construct that becomes complicated when you add in exceptions (but no more so than calling the destructors in C++ stack unwinding).

defer is quite a bit more complex than C++ stack unwinding, because it's dependent on implicit mutation of per-function state and can't really be implemented any other way in the general case. This shows up when you call defer repeatedly in a loop, for example.

There are no comments on this comment yet.