Hotter take: concatenation operator should not exist because it inherently encourages accidentally-/idiotically-quadratic behavior.
Sorry I was figuring it wrong. It's possible just expensive in storage and in worst-case individual op.
-
-
true, but it's generally how mutable strings are implemented in langs like C++/Rust.
-
If you're doing any serious text processing, you're probably better off switching to ropes :shrug:
-
and if you're doing anything that requires a bunch of strings, require fast comparison and a lot of the strings are repeated, you're better off switching to an identifier-style system.
-
array based strings are just a nice middle ground which aren't especially good for anything in particular, but also aren't especially bad for anything in particular
End of conversation
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.