July 27, 2015
7:59 a.m.
Hi. In most cases we always surround text by "()". Can we just provide method for this and not duplicate "between: '( ' and: ' )'" everywhere? Something like "stream>>printInBrackets:" 2015-07-27 10:33 GMT+03:00 stepharo <stepharo@free.fr>:
Esteban
I'm confused. I know << and I use it. Now << is different to what I mentioned. The point is not to replace nextPutAll: by << I'm not that stupid.
The point is the surrounding behavior (opening and closing). Sven of course there are more than a name so this is why I thought about
stream surround: aBlock between: '( ' and: ' )'
With << it means that we will have all the surrounding logic in all the code.
Stef