On Wednesday, June 01, 2016 11:30:02 Andrei Alexandrescu via Digitalmars-d wrote: > On 06/01/2016 11:24 AM, Jonathan M Davis via Digitalmars-d wrote: > > It seems more like RCString is an optimization for certain types of > > programs than what you'd want to use by default. > > You'll always want to use it. The small string optimization will make it > compelling for all applications. -- Andrei
Well, ref-counting vs GC aside, optimizations like that are actually something that can clearly make a user-defined type for strings worth using over naked arrays of code units, whereas it's far less clear that having a user-defined type for strings because of Unicode-related issues actually buys us much. - Jonathan M Davis