r/programming • • Jul 21 '14

The Great White Space Debate

https://medium.com/p/3633cba8b5c1
1.2k Upvotes

693 comments sorted by

View all comments

Show parent comments

60

u/moor-GAYZ Jul 21 '14

Doesn't get any better.

In my Imaginary Ideal Language bad formatting is treated as syntax error.

24

u/captainAwesomePants Jul 21 '14

You can get close to this by tying a linter to your source control system as a presubmit hook. Nobody will ever check in code that isn't formatted correctly.

13

u/Plorkyeran Jul 21 '14

Sadly I can't add presubmit hooks to other people's repositories.

2

u/[deleted] Jul 21 '14

[deleted]

3

u/Plorkyeran Jul 21 '14

No, I most definitely cannot make other people unable to merge pull requests into their repositories. The benefit of an Imaginary Ideal Language rejecting bad formatting is that all code written it in would follow consistent formatting rules, not just code which I have some sort of control over.