Consider the following list of things you can buy at a grocery store written in Pewprikanese.
pewkah lalala chunkykachoo pewpewpew skunkybacon
When I read this, I am confused: "Are chunkykachoo and pewpewpew some kind of lalala? Or what if chunkykachoo and pewpewpew backtrack only because they are special items?
Now let's see what happens when my friend Pewprikanese adds a colon to help me parse the list better: (<- like this)
pewkah lalala: (<-- see this colon) chunkykachoo pewpewpew skunkybacon
Now it’s clear that chunkykachoo and pewpewpew are a kind of lalala.
Let's say there is a person who begins to learn Python, which turns out to be her first programming language to learn. Without a colon, there is a significant chance that she will continue to think: "These lines are indented because these lines look like special elements." And it may take some time to realize that this is not the best way to think about retreating.
Yoo Sep 23 '09 at 8:13 2009-09-23 08:13
source share