D's confusing strings (was Re: D on hackernews)
Christophe
travert at phare.normalesup.org
Thu Sep 22 01:34:02 PDT 2011
"Jonathan M Davis" , dans le message (digitalmars.D:144962), a écrit :
>> - char[], etc. being real arrays.
>
> Which is actually arguably a _bad_ thing, since it doesn't generally make
> sense to operate on individual chars. What you really want 99.99999999999% of
> the time is code points not code units.
Well, char could also disapear in favor of ubyte, but that will confuse
even more people.
> If we were to start over again, that may very well be the way that
> we'd go, but the added benefits just don't outweigh the immense amount
> of code breakage which would result.
I 100% agree with that.
--
Christophe
More information about the Digitalmars-d
mailing list