lua-users home
lua-l archive

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


2015-05-06 8:06 GMT+02:00 steve donovan <steve.j.donovan@gmail.com>:
> On Wed, May 6, 2015 at 8:03 AM, Dirk Laurie <dirk.laurie@gmail.com> wrote:
>> Maybe even something like Rebol, which recognizes dozens of
>> types of literals as objects, such as dates, times, e-mail addresses,
>> URL's, filenames etc.
>
> Which feels too .. magical .. to me. Too baked into the language.
> Customizable literals are the way forward there, but we have the
> supremely flexible table {} constructor.

The lexical price paid is a little high for me too:

>> 1 + 2
== 3
>> 1+2
** Syntax Error: Invalid integer -- 1+2
** Near: (line 1) 1+2

I usually put spaces either side of the assigment symbol,
but use them in an expression only for grouping.