Nov. 26, 2014
4:32 p.m.
Yuriy Tymchuk wrote:
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.
Cheers Uko
This is typical advise, but previous discussion found it to be not necessarily true. https://www.mail-archive.com/pharo-dev@lists.pharo.org/msg08162.html Perhaps the rule should be ammended/deleted. cheers -ben