On Sat, Aug 8, 2015 at 7:42 AM, Peter Uhnák <i.uh...@gmail.com> wrote:
> What is better? > > String new writeStream > Prefer this one, as Stef said. > or > WriteStream on: String new > Use this one only if you want to specify which type of stream. > or > WriteStream on: '' > This is the worst. It won't work in GemStone for example, because '' is a literal. > > 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 > -- Mariano http://marianopeck.wordpress.com