Consistency, Templates, Constructors, and D3

F i L witte2008 at gmail.com
Mon Aug 27 09:20:36 PDT 2012


F i L wrote:
> On a side note, you could always invoke Arrays, Dynamic Arrays 
> (Lists), and Associative Arrays (Maps) by name (like every 
> other object), and use the '[...]' syntax for initializing the 
> size:
>
>     [ ... ]

meh. On second thought, that would be really annoying in some 
places. It would be ugly cause you'd have to do things like:

     void main(List(string) args) { ... }

instead of:

     void main(string[] args) { ... }

I think the way D currently handles arrays is very elegant.


More information about the Digitalmars-d mailing list