From: Wild Karl-Heinz Date: 2004-05-28T16:08:00+09:00 Subject: Re: Nasty string growth performance In message "Nasty string growth performance" on 28.05.2004, Pe�a, Botp 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