A few simple syntactic proposals

Leandro Lucarella llucax at gmail.com
Thu Apr 17 07:42:33 PDT 2008


Robert Fraser, el 17 de abril a las 01:15 me escribiste:
> Scott S. McCoy wrote:
> >On Wed, 2008-04-16 at 22:01 -0400, Jason House wrote:
> >>>Remove the implicit "length" inside slice brackets as it conflicts
> >>with
> >>>outer length. Allow only $.
> >The conflict is irrelevant.  I vote +1 for ditching "length" as a
> >magical keyword inside a slice index.
> >Although I still wish we had [..], [0..] [..N]... :-)
> 
> That's a really good idea, and I haven't seen that posted before. I'll suggest that one too unless there's any objection. If a lower expression is omitted, it 
> will automatically be converted to "0" and if an upper expression is missing it will automatically be converted to "$". Might be a little easier to make 
> mistakes with, though.

There were a whole thread on that, and it wasn't well received for several
reasons. I can't find the thread now.

-- 
Leandro Lucarella (luca) | Blog colectivo: http://www.mazziblog.com.ar/blog/
----------------------------------------------------------------------------
GPG Key: 5F5A8D05 (F8CD F9A7 BF00 5431 4145  104C 949E BFB6 5F5A 8D05)
----------------------------------------------------------------------------
Si pusieramos la máquina de cortar boludos dentro de la máquina del tiempo
y se pusiera a cortar boludos históricos con retroactividad,
otra sería la historieta hoy.
	-- Tato Bores



More information about the Digitalmars-d mailing list