lua-users home
lua-l archive

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


Ah, so the problem is that IN is not an operator (as if it matters how you want to look at it), and not how IN can be used to make programming expression easier?

Generic 'for'?  Not so generic, I guess.

-----Original Message----- From: Dirk Laurie
Sent: Friday, November 21, 2014 9:46 PM

(Another thing that I would expect is the IN operator to work like in Python
when used with strings.  But that’s another discussion...)

`in` is not an operator any more than `end` is. It is a token in the syntax
of the generic `for`.