lua-users home
lua-l archive

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

2011/10/25 Tony Finch <>:

> I recommend using the same operator for unary NOT and binary XOR,
> by analogy with negation and subtraction.
> ~ is a good choice given its use in the ~= operator and in C.

Mnemonic: "A NOT B" means either "(A NOT) B" or "A (NOT B)".