> Even more commonly, I want to know (and use) the value of the iteration 
> variable at the iteration that threw an error.  Debugging errors in loops 
> would be more difficult without this ability. 

But that only works in the global scope in the REPL, right?  So that is
a pretty limited use, and hopefully there will be a debugger available
soon.  And it could be worked around with one additional line:

for i=1:n
    ii=i
    do_something
end

Another pro-argument: This change would mean that all the scope-blocks
which introduce a binding in their head (function, let, for) make it
local to the block.

Reply via email to