lua-users home
lua-l archive

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


Can you elaborate more on the conflict between "continue" and the lexical scoping?

I understand lexical scoping but I am not able to understand the interaction. 

I am not an expert in computer science.

    Andrea


On Thu, May 12, 2022 at 11:25 AM Javier Guerra Giraldez <javier@guerrag.com> wrote:


On Thu, 12 May 2022 at 13:18, David Sicilia <dpsicilia@gmail.com> wrote:
Also I know that theoretically this can achieved using ‘goto’ but I don’t like that approach.

that was exactly the reason why there's `goto`.  a usable continue keyword has some ugly interactions with true lexical scoping, so ironically the `goto` is the cleaner way.

--
Javier


--
Andrea Vitali