Little things that matter in language design: make it do what it looks like it does
Little things that matter in language design: make it do what it looks like it does
Posted Jun 20, 2013 13:08 UTC (Thu) by Otus (subscriber, #67685)In reply to: Little things that matter in language design: make it do what it looks like it does by NRArnot
Parent article: Little things that matter in language design
> I was surprised that Python didn't get a look in. By making the indentation define the statement grouping, it eliminates a class of error caused by code that "obviously" does something because of the (insignificant) whitespace that a human interprets as significant, and which actually parses as something different.
I used to think Python's significant whitespace was awful, but since using it more I find it actually rather pleasant to work with. However, I now find I hate the colon. Since the indent already tells you where a block starts, why is it needed? Google tells me it's because "explicit is better than implicit", but in that case why is the *end* of a block implicit? Makes no sense to me...