[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Proposal: allow @, $, !, and ? in Lua identifiers
- From: Gavin Wraith <gavin@...>
- Date: Fri, 25 Apr 2014 14:40:05 +0100
In message <CAG4ptLijKcfmTLAAjdc=uatzGaFdBdFosWSva1O9G_M7ke-1WQ@mail.g
mail.com>
Coroutines <coroutines@gmail.com> wrote:
> 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.
RiscLua has allowed these in identifier names since at least 2003.
The motivation was to have syntax for memory access that would
be familiar to users of BBC Basic. As RISC OS stands rather
isolated among operating systems, so RiscLua has more freedom to go
its own way. Thus (in the environment of the riscos library)
"![addr] = word, ?[addr] = byte and $[addr] = string" pretty much
correspond to BBC Basic's "!addr% = word%, ?addr% = byte% and
$addr% = string$".
--
Gavin Wraith
- Prev by Date:
Re: Proposal: allow @, $, !, and ? in Lua identifiers
- Next by Date:
Re: Proposal: allow @, $, !, and ? in Lua identifiers
- Previous by thread:
Re: Proposal: allow @, $, !, and ? in Lua identifiers
- Next by thread:
Re: Proposal: allow @, $, !, and ? in Lua identifiers
- Index(es):