Hi Uko,

2014-11-26 17:18 GMT+01:00 Yuriy Tymchuk <yuriy.tymc...@me.com>:

> Hi everyone!
>
> There is a Lint rule that suggests to use stream instead of strings
> concatenation. What is the most common way, to create a string this way,
> because the only thing I can come up with is:
>
> String streamContents: [ :stream |
>         stream
>                 nextPutAll: 'Hello';
>                 nextPut: $ ;
>                 nextPutAll: 'World’]
>
> But I’m not sure if it is the preferred solution.
>

Yes, I use this too.
and I use << instead of #nextPutAll:

Cheers,

Luc


>
> Cheers
> Uko
>

Reply via email to