Mercurial > python-for-js-programmers
changeset 28:70f7edc3e3d4
Wording changes.
author | Atul Varma <varmaa@toolness.com> |
---|---|
date | Fri, 06 Jun 2008 00:01:30 -0700 |
parents | dce1c0e80dfb |
children | d8bb41310526 |
files | PythonForJsProgrammers.txt |
diffstat | 1 files changed, 5 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/PythonForJsProgrammers.txt Thu Jun 05 23:58:45 2008 -0700 +++ b/PythonForJsProgrammers.txt Fri Jun 06 00:01:30 2008 -0700 @@ -45,7 +45,7 @@ } Why does the programmer have to write more code to tell the computer -something it should already be able to understand from the use of +something it should already be able to infer from the use of whitespace? This is actually a violation of the `Don't Repeat Yourself`_ (DRY) @@ -61,10 +61,10 @@ when it processes the code. This reduces the burden on the programmer from having to repeat their intent in multiple different ways. -So, you won't see any brackets in Python. Instead, if a statement ends -with a colon, the next statement needs to be indented and begins a new -block. The block ends as soon as a line is encountered that's -unindented at least one level, like so:: +So, you won't see any brackets in Python. Instead, if a statement +ends with a colon, the next statement needs to be indented and begins +a new block. The block ends as soon as an unindented line is +encountered, like so:: if someVar == 1: doSomething()