lua-users home
lua-l archive

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


> <flamebait mode=":-)">
> Of course you could argue that many years of Java could hurt the mental
> sanity of a programmer, who will wander in the land of nowhere in a sort of
> hamletic delirium asking himself "a letter or not a letter" :-)
> </flamebait>

Well every language has its own very specific and strange subtleties.
It just became modern to hate java, as much it was hyped a few years
ago.

So $ is the in java the lowercase version of _ or viceversa, or is "_"
the same lower- as well uppercase? or neither?

Randomly googled out of robertos book:
pil> As another example, the pattern '[_%a][_%w]*' matches identifiers
in a Lua program: a sequence that starts with a letter or an
underscore

the lua understanding is obviously _ is not a letter.