Aug. 4, 2017
5:57 p.m.
I vote for: #cr and #lf just put this character in the stream. #newLine put the underlying OS line ending. This is consisten also with String>>expandMacrosWithArguments: <r> -> cr <l> -> lf <n> -> OSPlatform current lineEnding On Fri, Aug 4, 2017 at 7:03 AM, Stephane Ducasse <stepharo.self@gmail.com> wrote:
Hi guys
While writing pillar code, I ended up using "stream cr" and it worries me to still expand usage of a pattern I would like to remove.
Let us imagine that we would like to prepare the migration from cr. I was thinking that we could replace cr invocation by newLine so that after newLine could be redefined as
Stream >> newLine self nextPutAll: OSPlatform current lineEnding
what do you think about this approach?
Stef