lua-users home
lua-l archive

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


Luiz Henrique de Figueiredo wrote:
> I confess that one of the initial choices in the design of Lua was that it
> should not be similar to C, because we were targeting end users, not experienced
> programmers.
> To us, ~ reads naturally as "not" and so ~= reads naturally as "not equal".
> Perhaps because ~ is bitwise-not in C...
> 
> Anyway, it's not something that can be changed now. Sorry.
> --lhf

Well after looking more into - I'm planning to just add '!' to work just
like '~' but not remove the '~' and thereby preserving Lua syntax!

/Erik