lua-users home
lua-l archive

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


On 2014-05-03 7:00 AM, "Coroutines" <coroutines@gmail.com> wrote:
>
> 1) I'd like to see `a` (note the backticks) be a run-once form of
> string.byte('a') -- a single-character transform that happens at
> compile-time.  When you use string.byte() in a loop it'll be run every
> time, and I argue that creating a local for this purpose is difficult
> to name and largely a waste of a local.

I've seen this proposed as #'A' before. Of course the problem with that idea is it changes the meaning of already valid syntax...