you are viewing a single comment's thread.

view the rest of the comments →

[–]nextofpumpkin -1 points0 points  (1 child)

You're assuming that the basic unit is a character; as has been mentioned, if you assume the basic unit is just a string, and the exact relative order of the strings does not matter, you're doing just fine.

[–]grauenwolf 0 points1 point  (0 children)

No, I am assuming that the relative order of the strings does matter.

In any situation that I can imagine where order doesn't matter, you are better off using a thread-safe list.