More complexity creep in Phobos

H. S. Teoh hsteoh at quickfur.ath.cx
Mon Apr 1 14:05:12 UTC 2019


On Sat, Mar 30, 2019 at 06:31:05PM -0400, Andrei Alexandrescu via Digitalmars-d wrote:
> On 3/30/19 3:22 PM, Jonathan M Davis wrote:
> > Either way, isConvertibleToString must go.
> 
> Word.
> 
> We should have one rcstring type that is reference counted, uses UTF8,
> is not a range, offers ranges (bytes, codepoints, graphemes), and
> consolidate around it. Algorithms should only use ranges, and whenever
> someone wants to use an algorithm with a string, they choose the
> iteration mode that fits the application.

+1.  That's the correct approach.  If std.v2 ever happens, this is
definitely the way to go.


T

-- 
Insanity is doing the same thing over and over again and expecting different results.


More information about the Digitalmars-d mailing list