In message "Nasty string growth performance"
   on 28.05.2004, Pe, Botp <botp / delmonte-phil.com> writes:

PB> Joel VanderWerf [mailto:vjoel / PATH.Berkeley.EDU] wrote:

>> Tom Trebisky wrote:
>> > 	    buf = ""
>> ...
>> >                 buf += line

>> What you probably want is
>> 
>>    buf << line
>> 
>> This just concatenates line on the end of the buf string, 
>> modifying buf 
>> in place. 


PB> Forgive my ignorance, but
PB> may I know the reason why

PB>    buf += line

PB> was made to act different from

PB>    buf << line

PB> Of course, I prefer the syntax of the former w the behavior of the latter.
PB> It's commonplace (for nubies ie :).

Maybe you've overseen the comment

>> modifying buf
>> in place. 


regards
Karl-Heinz