KeepTerminator

Andrei Alexandrescu via Digitalmars-d digitalmars-d at puremagic.com
Tue Oct 20 03:10:05 PDT 2015


On 10/20/2015 03:38 AM, Shriramana Sharma wrote:
> Writing stdin.byLine(KeepTerminator.yes) is quite awkward. Why this long
> name and not something shorter like KeepEOL?

It is what it is. Write it and move on.

> BTW on Python the default is to *not* strip the newlines. Is there a reason
> the opposite is true here?

I recall at the time I defined the function, everyone in this forum 
wanted the other way around.


Andrei



More information about the Digitalmars-d mailing list