Arc Forumnew | comments | leaders | submitlogin
8 points by PJW 6157 days ago | link | parent

pg once commented that this had some unexpected interactions with macros and dropped it for now or permanently. http://www.paulgraham.com/arclessons.html


4 points by bogomipz 6157 days ago | link

Wasn't part of the problem that they made the innermost do the scope of the variable? What if they had used the outermost do instead? That would normally mean a def, which would be quite intuitive for the user.

The compiler should then be smart enough to figure out which closures actually make use of the variable and optimize away the overhead of holding onto a variable that is not needed.

-----