A few simple syntactic proposals

Robert Fraser fraserofthenight at gmail.com
Fri Apr 18 01:37:18 PDT 2008


Sean Kelly wrote:
> == Quote from Scott S. McCoy (tag at cpan.org)'s article
>> 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 reminds me... drop the dual meaning of "auto".  The old meaning
> has hung on for far too long.
> 
> 
> Sean

That's another really good one. Especially with other storage classes, 
it can be a real killer when "const auto S = ...;" doesn't mean the same 
thing as "const S = ...;".



More information about the Digitalmars-d mailing list