[phobos] The time has come to destroy all y'all over CR/LF

Walter Bright walter at digitalmars.com
Wed Jan 26 13:55:03 PST 2011



David Simcha wrote:
> Vote++.  No end user of any production quality program should ever 
> have to care about such trivia as line terminators except in extreme 
> corner cases (like the aforementioned case of ending up w/ a CR LF 
> that come from two different edits on two different OS's).
>

That's still NOT a problem. Merely treat each line as unique. Look at 
dmd's lexer.c to see how it's done. It's trivial.


More information about the phobos mailing list