On Wed, 2004-03-10 at 13:58, Carl Cerecke wrote:
> In traditional languages (inc. C and Deplhi), a block of statements is
> indicated to the compiler by begin/end pairs (using whatever notation).
> For the programmer, the block of statements is also indented to make it
> easier to read - indentation is ignored by the compiler. Python makes
> that indentation explicit - that is, it means something to the compiler.
> Because indentation is now significant, the begin/end is redundant. The
> block simply stops when the indentation level is decreased, as one
[It is rare that I have to pull Carl up on a Python matter, but I am
feeling lucky, so here goes :) ]
Python does have a BEGIN marker, a colon(":"), but it has no end-marker,
as you say, just a change in whitespace. Python programmers commonly
state that there is no BEGIN/END markers, but ":" has always been there
:)
--
Michael JasonSmith http://www.ldots.org/- Re: Benefits/Drawbacks of C (was Re: something I ...) Zane Gilmore
- Re: Benefits/Drawbacks of C (was Re: something I ...) Patrick Dunford
- Re: Benefits/Drawbacks of C (was Re: something I ...) Zane Gilmore
- Re: Benefits/Drawbacks of C (was Re: something I ...) Patrick Dunford
- Re: Benefits/Drawbacks of C (was Re: something I ...) anton
- Re: Benefits/Drawbacks of C (was Re: something I ...) anton
- Re: Benefits/Drawbacks of C (was Re: something I ...) Patrick Dunford
- Re: Benefits/Drawbacks of C (was Re: something I ...) anton
- Re: Benefits/Drawbacks of C (was Re: something I ...) Patrick Dunford
- Re: Benefits/Drawbacks of C (was Re: something I ...) Patrick Dunford
- Re: Benefits/Drawbacks of C (was Re: something I ...) Michael JasonSmith
- Re: Benefits/Drawbacks of C (was Re: something I ...) Carl Cerecke
- Re: Benefits/Drawbacks of C (was Re: something I ...) Steve Holdoway
- Re: Benefits/Drawbacks of C (was Re: something I ...) Steve Holdoway
- Re: Benefits/Drawbacks of C (was Re: something I ...) Carl Cerecke
- Re: Benefits/Drawbacks of C (was Re: something I ...) Zane Gilmore
- Re: Benefits/Drawbacks of C (was Re: something I ...) Steve Holdoway
- Re: Benefits/Drawbacks of C (was Re: something I ...) Zane Gilmore
- Re: Benefits/Drawbacks of C (was Re: something I ...) anton
- Re: Benefits/Drawbacks of C (was Re: something I ...) Andrew Errington
- Re: Benefits/Drawbacks of C (was Re: something I ...) anton
