[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: metatables for strings?
- From: Dirk Laurie <dirk.laurie@...>
- Date: Wed, 6 May 2015 09:07:43 +0200
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.
- References:
- metatables for strings?, Sam Putman
- Re: metatables for strings?, Nagaev Boris
- Re: metatables for strings?, Sam Putman
- Re: metatables for strings?, Sam Putman
- Re: metatables for strings?, Dirk Laurie
- Re: metatables for strings?, Nagaev Boris
- Re: metatables for strings?, Philippe Lhoste
- Re: metatables for strings?, Roberto Ierusalimschy
- Re: metatables for strings?, Rena
- Re: metatables for strings?, Dirk Laurie
- Re: metatables for strings?, steve donovan