Blog Post
JackLacava
2 years agoCommunity Manager
StringBuilder is generally meant for any string concatenation, not just in a loop - because it doesn't create new objects in memory with each concatenation, it should reduce memory-waste. It also works well for situations where whitespace in the String is significant, but you don't want to break code indentation with a multiline raw String.
I agree that it's unnecessary in this post, but I included it to raise awareness. Good comment!