3 ms·
I looked up that claim about the origin of Python’s block-starting colon. It turns out that making Python easy for editors to parse was indeed one reason, but n
by roryokane 14y ago
I looked up that claim about the origin of Python’s block-starting colon. It turns out that making Python easy for editors to parse was indeed one reason, but not the primary reason. The primary reason was that Guido thought that the code looked more readable with the colon than with just an indent.
Sources: http://markmail.org/message/ve7mwqxhci4pm6lw http://markmail.org/message/ve7mwqxhci4pm6lw, http://docs.python.org/2/faq/design.html#why-are-colons-required-for-the-if-while-def-class-statements http://docs.python.org/2/faq/design.html#why-are-colons-requ...
- JulianWasTaken 14y agoYou caught me ;). I know the FAQ says it's only a minor reason, and that it's just more readable, but I like to leave that part out since it's wrong =p.