Le 8/8/15 12:42, Peter Uhnák a écrit :
What is better?
String new writeStream
I prefer this one because the class of the stream is not hardcoded in my
code :)
or
WriteStream on: String new
or
WriteStream on: ''
by popularity '' is the winner, however apparently not everyone is
happy with that
https://pharo.fogbugz.com/f/cases/15260/WriteStream-on-new-string
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
f := Finder new.
(f sourceSearch: 'WriteStream on: ''''') size. "51"
(f sourceSearch: 'String new writeStream') size. "48"
(f sourceSearch: 'WriteStream on: String new') size. "39"
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
While this is not a popularity contest, we can at least poll for
preferences https://strawpoll.me/5153067 :)
Peter