D-ish way to work with strings?

Robert M. Münch robert.muench at saphirion.com
Sun Dec 22 14:15:51 UTC 2019


I want to do all the basics mutating things with strings: append, 
insert, replace

What is the D-ish way to do that since string is aliased to immutable(char)[]?

Using arrays, using ~ operator, always copying, changing, combining my 
strings into a new one? Does it make sense to think about reducing GC 
pressure?

I'm a bit lost in the possibilities and don't find any "that's the way 
to do it".

-- 
Robert M. Münch
http://www.saphirion.com
smarter | better | faster



More information about the Digitalmars-d-learn mailing list