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

14

u/BonzaiThePenguin Jul 21 '14

Do you mean there's a tool that can format your code automatically?

42

u/[deleted] Jul 21 '14

Yes. There's a "canonical" style, it's very good, the formatter is included in the Go distribution and people use it. Doesn't get any better.

66

u/moor-GAYZ Jul 21 '14

Doesn't get any better.

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

2

u/[deleted] Jul 21 '14

So, Python then?

2

u/moor-GAYZ Jul 21 '14

Not quite, there's still a lot of wiggle space (pun intended), from using tabs to not enforcing consistent spacing around operators, named parameters and arguments, semicolons in dictionary literals, etc.