There are at least four "common" symbols unused in Lua: !, @, $, ?
! is frequently associated with not, which could get confusing
@, common on keyboards, may mean something specific in some programming languages but does not have a common meaning
$ US-centric, not be present on some keyboards
? might be confused with a conditional, confusing if at the front of a name
@ would be equivalent to:
Code: Select all
local @ = function(tbl)
local i = 0
for _ in pairs(tbl) do
i = i + 1
end
return i
end