string is rarely useful as a function argument

Gor Gyolchanyan gor.f.gyolchanyan at gmail.com
Wed Dec 28 09:24:04 PST 2011


Having a mutable string is a bad idea also because it's mutability is
in the form of array element manipulations, but the string (except for
the dstring) is not semantically an array and its element mutation
isn't safe.

On Wed, Dec 28, 2011 at 9:19 PM, Dejan Lekic <dejan.lekic at gmail.com> wrote:
> Peter, having string as immutable(char)[] was perhaps one of the best D2
> decisions so far, in my humble opinion. I strongly disagree with you on this
> one.



-- 
Bye,
Gor Gyolchanyan.


More information about the Digitalmars-d mailing list