Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

For what reasons do some programmers vehemently hate languages where whitespace matters (e.g. Python)? [closed]

C++ is my first language, and as such I'm used to whitespace being ignored. However, I've been toying around with Python, and I don't find it too hard to get used to the whitespace rules. It seems, however, that a lot of programmers on the Internet can't get past the whitespace rules. From what I've seen, peoples' C++ programs tend to be formatted very consistently with respect to whitespace (or else it's pretty hard to read), so why do some people have such a problem with whitespace-based languages like Python?

like image 762
Maulrus Avatar asked Apr 22 '10 23:04

Maulrus


1 Answers

It violates the Principle of Least Astonishment, because we have it ingrained in ourselves (whether for good or bad) that whitespace Does Not Matter in a programming language. Whitespace is one of those issues that has been left up to personal style.

I still have bad memories back from being a student of learning the hard way that 8 spaces is not equivalent to a tab in a Makefile... Ah, the sleep I lost...

like image 95
Ether Avatar answered Oct 13 '22 01:10

Ether