Nov-04-2016, 09:16 AM
Yeah I missed that in the original post, but the other way is actually bad for more than idiomatic reasons. Depending on your OS, string concatenation is not guaranteed to be optimized. It tends to be optimized in Linux versions and not in Windows versions in my experience, but the point is that behavior is not guaranteed in spec. This means you can write an alg on linux that runs in O(n) and then suddenly encounter users complaining about performance because they are getting O(n^2). This is very hard to debug unless you are aware of it.
I hope that this has been addressed in all versions in the current 3x version but I am not aware if it has.
I hope that this has been addressed in all versions in the current 3x version but I am not aware if it has.