I'm seeing that all causes of "output between brackets" are located in printString/printOn: methods Perhaps, it will be better to create special method like nextPutAllWithClassName: or something like it? 27/07/15 10:59, Denis Kudriashov пиÑеÑ:
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 <mailto: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