in reply to Scalar assignment with loop iterator considered bad?
Did they define "desirable"? The first one could result in multiple reallocs of the string buffer, but that's not such a big deal.