On 05/25/2012 08:43 AM, Kevin Cantu wrote:
This conversation reminds me of Alexandrescu's talk about D's scope keyword:
http://channel9.msdn.com/Events/Lang-NEXT/Lang-NEXT-2012/Three-Unlikely-Successful-Features-of-D

It looks like a graceful syntax for handling all sorts of nested error
and failure cleanup...

I like the scope keyword, FWIW. It'd be even better if you didn't have to provide a variable name if all you want to do is execute some code at the end of the block.

This would provide a facility like Go's "defer" keyword, but more general since it also admits C++ RAII patterns.

Patrick
_______________________________________________
Rust-dev mailing list
[email protected]
https://mail.mozilla.org/listinfo/rust-dev

Reply via email to