Major performance problem with std.array.front()

Vladimir Panteleev vladimir at thecybershadow.net
Sun Mar 9 08:27:29 PDT 2014


On Sunday, 9 March 2014 at 08:32:09 UTC, monarch_dodra wrote:
> On topic, I think D's implicit default decode to dchar is 
> *infinity* times better than C++'s char-based strings. While 
> imperfect in terms of grapheme, it was still a design decision 
> made of win.

Care to argument?

> I'd be tempted to not ask "how do we back out", but rather, 
> "how can we take this further"? I'd love to ditch the whole 
> "char"/"dchar" thing altogether, and work with graphemes. But 
> that would be massive involvement.

As has been discussed, this does not make sense. Graphemes are 
also a concept which apply only to certain writing systems, all 
it would do is exchange one set of tradeoffs with another, 
without solving anything. Text isn't that simple.


More information about the Digitalmars-d mailing list