News for hackers. Stuff that matters.
Re:Comparing Elixir and Go by coldtea on Friday January 27, 2017 @06:49AM (#13499191)
It can require building a new string. But what is argued is that it wont require building several new strings incrementally for each concatenation.

E.g. no:

A + B + C + D -> AB + C + D -> ABC + D -> ABCD

And for immutable strings, it might not even require to build a new string at all, even if the string is in memory: it can just use a string data structure pointing to the various parts.

(

There are no comments on this comment yet.