tabs do WHAT?
Cameron Laird
claird at starbase.neosoft.com
Mon Jan 24 22:29:54 EST 2000
In article <slrn895gp2.rar.kc5tja at garnet.armored.net>,
Samuel A. Falvo II <kc5tja at garnet.armored.net> wrote:
.
.
.
>Now try explaining brace-delimited constructs to a newbie:
>
>Everything you want done under the IF statement needs to go inside these
>things called Braces. You need these braces to group the things you want
>done to treat them as a unit. My recommendation is to write your code like
>this, but you don't have to. Just make sure, whichever style you choose to
>write your code in, make it consistent so you'll know what you wrote two
>months ago:
>
> if( a == b )
> {
> do this;
> then do this;
> then do that;
> and finally, do that.
> }
>
>I can absolutely guarantee a new-comer to programming, computer science
>major or otherwise, will have their head spinning with the latter
>description. The former is a piece of cake, because _everyone alive today_
>writes outlines in almost exactly the same way, and in every way, they are
>whitespace sensitive.
.
.
.
You forgot about the part where, if any more {-s and }-s
show up in the "do this" part, they have to balance.
Unless they're in quotes.
Except for ones in comments.
Or if they're themselves quoted, in some circumstances.
--
Cameron Laird <claird at NeoSoft.com>
Business: http://www.Phaseit.net
Personal: http://starbase.neosoft.com/~claird/home.html
More information about the Python-list
mailing list