by gcp · 14y ago · 0 comments
I can attest firsthand this causes bugs. 2 spaces just isn't enough to reliably visually identify the horizontal separation.
Python got this right with PEP 8. CoffeeScript did not and is worse for it.
What I can say though, is that there is a correlation between a lousily indented code and bugs. Consistency is the key in indentation. Reading non-consistently indented code, that's what drives you insane... but two instead of four spaces... hardly.
I have no problem with 2 spaces in C/C++. I have no problems with Pythons use of white-space to define blocks. But the combination is deadly.