The Fine Print: The following comments
are owned by whomever posted them.
( Reply )
|
Re: Nonsense
by Matt Spong on Tuesday 18/Sep/2001, @07:50
|
"Everybody knows that the OTIS (One True Indenting Style) uses 4 spaces for indentation."
Bah! No! Use tabs. If you like your indentation to be 4 spaces, set your tabstop to 4.
|
[
Reply To This | View ]
|
Re: Nonsense
by Christian on Tuesday 18/Sep/2001, @11:35
|
What does 4 spaces mean ? 4 spaces.
What do you intend when putting them ? Indent.
Just as the newline character means a new line,
et the tab mean indentation (or tabulation).
That was it is for.
The first thing you learn while writing XML/SGML
documents is that contents is not presentation.
You waste your time if you take care of presentation
(ie : counting tabs, and why 4 tabs after all - it's
a presentation choice) while coding. Tabs acts as
a XML tag that says... indent !
Let your editor handle the look of your code, and
put only the core meaning in your files.
(of course, that's my opinion... and no, I do not
want to troll ;-)
|
[
Reply To This | View ]
|
Re: Nonsense
by Evan "JabberWokky" E. on Tuesday 18/Sep/2001, @12:00
|
: The first thing you learn while writing XML/SGML
: documents is that contents is not presentation.
Damn it, I
took your
concept to heart
,
and now my python
programs won't
run!
--
Evan
|
[
Reply To This | View ]
|
Re: Nonsense
by Christian on Tuesday 18/Sep/2001, @13:39
|
You misunderstood me. In python, indentation is part
of the semantic. Presentation has nothing to do with
indentation, you can indent with tab (a language that
doesn't accept that is a broken one).
|
[
Reply To This | View ]
|
Re: Nonsense
by Evan "JabberWokky" E. on Wednesday 19/Sep/2001, @12:36
|
:: You misunderstood me. In python, indentation is part
:: of the semantic. Presentation has nothing to do with
In python, indentation is part of the semantic
information used by the interpreter. In C++,
indentation is part of the semantic information used
by the coder.
Otherwise, why comment code? It does not carry any
semantic information that the compiler cares about...
--
Evan
|
[
Reply To This | View ]
|
|
The Fine Print: The previous
comments are owned by whomever posted them.
( Reply )
|
|