digitalmars.D.learn - Why does 'string' alias immutable(char)[] and not immutable(char[]) ?
- spir (8/8) Dec 01 2010 Well, nearly everything is in the title... I would intuitively opt for t...
- Ellery Newcomer (3/9) Dec 01 2010 Don't know about you, but I liked being able to write
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 =E2=98=A3 spir.wikidot.com
Dec 01 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
Dec 01 2010