What is better?
String new writeStream or WriteStream on: String new or WriteStream on: '' by popularity '' is the winner, however apparently not everyone is happy with that ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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 |
Le 08/08/2015 12:42, Peter Uhnák a écrit :
> What is better? > > String new writeStream > 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 -- Cheers Cyril signature.asc (836 bytes) Download Attachment |
In reply to this post by Peter Uhnak
Le 8/8/15 12:42, Peter Uhnák a écrit :
I prefer this one because the class of the stream is not hardcoded in my code :)
|
In reply to this post by Peter Uhnak
On Sat, Aug 8, 2015 at 7:42 AM, Peter Uhnák <[hidden email]> wrote:
Prefer this one, as Stef said.
Use this one only if you want to specify which type of stream.
This is the worst. It won't work in GemStone for example, because '' is a literal.
|
Free forum by Nabble | Edit this page |