On Aug 9, 2004, at 3:36 PM, Charlie Griefer wrote:

> Hey all:
>
>  Going over Sean C.'s Coding Standards and noticed that he states you
>  should make sure to use Unix Linefeeds.
>
>  Just curious as to whether or not anybody could shed some light on
> why?
>

It is a small thing, but a Unix new line (\n) takes half the characters
than the windows carriage return (\r) followed by a new line (\n)

the separation of the two functions cr and lf is a throwback to the
days when teletype and selectric typewriters were used as computer
consoles and terminals.  When printing formatted data, it was often
faster to do a lf and backspace instead of cr lf followed by spaces
and/or tabs. Some terminals could even buffer and print backwards.

With modern displays, this advantage of separating cr and lf is gone.

Interesting that the older OS (Unix) has the newer construct -- i
suspect that this is largely due to IBM's influence on the early
versions of MS DOS.

HTH

Dick
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]

Reply via email to