Why does 'string' alias immutable(char)[] and not immutable(char[]) ?
Ellery Newcomer
ellery-newcomer at utulsa.edu
Wed Dec 1 19:53:07 PST 2010
Don't know about you, but I liked being able to write
s += "hi";
On 12/01/2010 05:17 AM, spir wrote:
> Well, nearly everything is in the title... I would intuitively opt for the second type if I had to define an immutable string type.
>
> Answers from various points of view (semantic, praticality, efficiency...) would be great if ever they may differ.
>
> denis
> -- -- -- -- -- -- --
> vit esse estrany ☣
>
> spir.wikidot.com
>
More information about the Digitalmars-d-learn
mailing list