[Pharo-dev] About cr and lf

Alistair Grant akgrant0710 at gmail.com
Sat Aug 5 05:14:30 EDT 2017


On Sat, Aug 05, 2017 at 11:09:51AM +0200, Esteban Lorenzano wrote:
> 
> > On 5 Aug 2017, at 11:06, Alistair Grant <akgrant0710 at gmail.com> wrote:
> > 
> > On Sat, Aug 05, 2017 at 10:49:02AM +0200, Esteban Lorenzano wrote:
> >> I think there is a consensus we need to keep #cr and #lf as intended,
> >> yet to add some kind of #newLine (which btw is different to EOL :P)
> >> vocabulary, isn???t?
> >> 
> >> In this, I favour Peter approach for define line ending convention
> >> (the way #newLine will work)??? and of course by default it should use
> >> the one from the current platform. 
> >> 
> >> anything agains this approach?
> >> 
> >> Esteban
> > 
> > +1
> > 
> > I prefer #nl to #newLine, but admit that it is a subjective preference
> > and that descriptive names are generally better.
> 
> heh, me too... but is a bit cryptic.


#nl
    "Insert the platform dependent end of line character.
    For people that haven't got used to terminal communications rising
    above 9600baud"

    ^self newLine



:-)




More information about the Pharo-dev mailing list