Array literals
bearophile
bearophileHUGS at lycos.com
Thu Oct 16 07:25:02 PDT 2008
Andrei Alexandrescu:
> Yah Walter does plan to make "string literals" dynamically-sized by
> default, but fixed-sized on demand (if you specify the appropriate
> receiver type, which in turn asks the T[auto] question). In related
> news, he wants to legitimize statically-typed arrays by making them true
> value types.
Good. But why not make all array literals dynamically-sized by default , but fixed-sized on demand? Isn't that more symmetric (so the D programmer has to remember less special cased rules == simpler language)?
Bye,
bearophile
More information about the Digitalmars-d
mailing list