lua-users home
lua-l archive

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


My comments:

I would like to (sometime) see the Pascal-like <> (and possibly even the C-like !=) be used as synonyms for the less intuitive ~= So, how about reserve ! for possible future addition of != ?
I agree for "?" as it allows making question like names like "Digit?" 
instead of "IsItDigit"
The $ is OK for me, too (although seeing it in a form like $8000 is 
confusing as it hexadecimal  notation in some other languages -- unless it 
cannot be placed as the first character of a name).
(For the @ I think it could be reserved for possible future expansion of the 
language that may require special notation.  Other than that, why not?)
-----Original Message----- 
From: Coroutines
Sent: Friday, April 25, 2014 3:13 PM
To: Lua mailing list
Subject: Proposal: allow @, $, !, and ? in Lua identifiers

I'd like to discuss allowing @, $, !, and ? in identifier names.  I
chose these explicitly because they can't be confused with an operator
at the end of an identifier.