[KDE Dot News]
 faq
 flatforty
 contribute
 subscribe
 configure
 search
 rdf

 main
 parent
 thread


Nonsense
by Simon Perreault on Tuesday 18/Sep/2001, @05:24
Everybody knows that the OTIS (One True Indenting Style) uses 4 spaces for indentation.

pffffffft...
  Related Links
 ·   Articles on Multimedia
 ·   Also by Simon Perreault
 ·   Contact author

Thread Threshold:

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 )

  "He may be a Hotmail user, but the patch works, so who am I to argue?" -- Charles Samuels
KDE®, "K Desktop Environment", "KDE Dot News", "got the dot?" and the KDE Logo® are trademarks or registered trademarks of KDE e.V. in the European Union, the United States and other countries. All other trademarks and copyrights on this page are owned by their respective owners. Comments are owned by the poster. The rest: Copyright © 2000-2008 KDE e.V. for The KDE Project. For further information or comments on this site, please contact the Webmaster.
[ home | post article | flat forty | subscribe | search | rdf ]