lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


Roberto Ierusalimschy wrote:
My point was not to present that as a reason to avoid 'continue', but to
present a real example of how simple and innocent changes to a language
can have hidden and pernicious side effects.

Yes, I was aware of that, just that the change in question proved to be not-so-innocent :)

While we're on this topic, there's another possibility:
introduce 'continue' for 'while' and 'for' loops and make it invalid in 'repeat' loops (compile-time error). This would have a benefit of keeping backward compatibility.

--
Shmuel