2018-03-19 21:21 GMT+01:00 Denis Kudriashov <[email protected]>: > > > 2018-03-19 20:39 GMT+01:00 Esteban A. Maringolo <[email protected]>: > >> 2018-03-19 16:32 GMT-03:00 Denis Kudriashov <[email protected]>: >> > >> > Hi Guille. >> >> > What you think to add helpfull converting methods? >> >> I'd like them. Anything that saves me from passing a string literal as >> parameter is good. :) >> >> > aStream buffered. >> >> I'd only change this one, to #beBuffered. >> > > But #be sounds like it modifies receiver. > But idea is same as #reversed or #sorted for collections. > >
-1 for beBuffered, it's not about adding states to the stream. As Denis said, it's a transform producing a new stream. > >> > aStream withLineEnding: String cr. >> > aStream withPlatformLineEnding. >> >> These two seem ambiguous to me, #with prefix signals something else in my >> head. > > >> I'd remove the "with" and use instead: >> >> aStream lineEnding: String cr. >> aStream usePlatformLineEnding. >> > > Same here. They will return new instances wrapping receiver. And #with is > like #copyWith: for arrays. > Maybe something like: > > aStream forcedLineEnding: String cr. > aStream forcedPlatformLineEnding. > > > >> >> Regards! >> >> >> >> Esteban A. Maringolo >> >> >
