Is [] mandatory for array operations?

Robert Jacques sandford at jhu.edu
Fri May 7 12:00:55 PDT 2010


On Fri, 07 May 2010 13:18:04 -0400, Kagamin <spam at here.lot> wrote:

> Michel Fortin Wrote:
>
>> There is some elegance to that solution since it chooses the right
>> solution for the problem at hand. If you assign the result to a
>> temporary array as above, it's probably because you'll need it
>> somewhere else and thus you really need to keep the temporary around.
>> If you don't don't use a temporary variable, you'll automatically
>> benefit from array ops.
>>
> D's own angle brackets :)

:) Actually, angle brackets are far worse, because it means the lexer and  
semantic analysis can't be separated.


More information about the Digitalmars-d mailing list