The Case Against Autodecode

Andrei Alexandrescu via Digitalmars-d digitalmars-d at puremagic.com
Mon May 30 08:58:18 PDT 2016


On 05/29/2016 04:47 PM, H. S. Teoh via Digitalmars-d wrote:
> It depends on what you're trying to accomplish. That's the point we're
> trying to get at.  For some operations, working with code points makes
> the most sense. But for other operations, it does not.  There is no one
> representation that is best for all situations; it needs to be decided
> on a case-by-case basis.  Which is why forcing everything to decode to
> code points eventually leads to problems.

I see. Again this all to me sounds like "naked arrays of characters are 
the wrong choice and should have been encapsulated in a dedicated string 
type". -- Andrei



More information about the Digitalmars-d mailing list