What are the worst parts of D?
Walter Bright via Digitalmars-d
digitalmars-d at puremagic.com
Fri Sep 26 11:53:48 PDT 2014
On 9/26/2014 6:55 AM, Sean Kelly wrote:
> On Friday, 26 September 2014 at 04:37:06 UTC, H. S. Teoh via Digitalmars-d wrote:
>>
>> So basically, we're paying (1) lower performance, (2) non-random access
>> for strings, (3) subtle distinction between index and count and other
>> such gotchas, and (4) tons of special-cased Phobos code with the
>> associated maintenance costs, all for incomplete Unicode correctness.
>> Doesn't seem like the benefit measures up to the cost. :-(
>
> Yep. When I use algorithms on strings in D, I always cast them to ubyte[].
> Which is a poor solution.
Now you can use the adapters .byCodeUnit or .byChar instead.
More information about the Digitalmars-d
mailing list