# HG changeset patch # User Atul Varma # Date 1213164917 25200 # Node ID 852f069c23b7bb2d279424a358a7a893a519b6ad # Parent acb80c6abaa80c2e443c7a9c4324a1b46635f2f5 Revised the statement about semicolons as suggested by Paul Boddie. diff -r acb80c6abaa8 -r 852f069c23b7 PythonForJsProgrammers.txt --- a/PythonForJsProgrammers.txt Tue Jun 10 23:09:08 2008 -0700 +++ b/PythonForJsProgrammers.txt Tue Jun 10 23:15:17 2008 -0700 @@ -75,11 +75,14 @@ else: doOtherThing() -Also note that Python doesn't use semicolons, which is yet another -language feature that reduces the cognitive burden on the programmer. -Indeed, many of the language features covered below were designed with -a very careful eye towards readability, reducing cognitive load, and -making the process of programming `as enjoyable as possible`_. +Python is technically like JavaScript in that semicolons are optional, +but its community prescribes the opposite convention: that is, +semicolons should *never* be used to delimit statements unless +absolutely necessary. This is yet another decision that reduces the +cognitive burden on the programmer; indeed, many of the language +features covered below were designed with a very careful eye towards +readability, reducing cognitive load, and making the process of +programming `as enjoyable as possible`_. .. _`Don't Repeat Yourself`: http://en.wikipedia.org/wiki/Don%27t_repeat_yourself .. _`as enjoyable as possible`: http://xkcd.com/353/