lua-users home
lua-l archive

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


On Fri, Jun 7, 2019 at 3:02 AM Philippe Verdy <verdy_p@wanadoo.fr> wrote:
The ":" is a binary operator used in expressions, it is bound to a specific function that creates a binding between to object, that binding being a new object that can be used to perform a function call in a special way (which modifies the list of operands by prepending the first parameter of the binding). The ":" can be used between any pair of objects.


No, that's not true. That's how it works in Python, but in Lua it is NOT a binary operator but rather a part of a ternary function call operator.

There have been who-knows-how-many discussions in MAKING it a binary operator that creates a binding, but none of them have ever gained traction.

/s/ Adam