Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> Whitespace at the end of line is a compile error

How does this "make life easier"?



One less annoyance for others to deal with.

Set your text editor to trim trailing whitespace on save, then I won't have to filter out your crap from my commits just because I happened to save a change in the same file that was previously saved by your sloppy text editor.

I wholeheartedly endorse this. While we're at it, please set your text editor to ensure that every file ends with a newline character.


Practically, engineers should never think about something like this because their environment should automatically fix it. I guess it's weird that it won't compile but there's languages that won't compile if you don't end the line with a semicolon. Just use an editor that will fix this automatically and never spare another thought for it.


So I can avoid needing to double check changes when I hit save on a file that you previously edited with white space and all of a sudden my one line change has 4 changed lines.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: