David Brown wrote:
On Wed, Jan 02, 2008 at 02:58:42PM -0800, SJS wrote:
One of the fancy editors we used when I was using C++ would do that for
C++ -- significant closing braces were annotated with what they closed.
It was all editor magic, but it was useful as well.
I'm suprised that this isn't a feature of some IDE for python yet.
This might be that mindset thing, again. I find comments:
...
} /* if */
to be extremely annoying, to the point of making the code harder to read.
That close brace is a small turd at the end of a block that the compiler
needs because it doesn't have any other way to know when the block ends. I
would be perfectly happy if the editor made it a faint gray that was barely
visible.
Maybe this comes from doing lisp/scheme, where the close parens are almost
always just placed at the end of the last line. I have seen C code like
that, but it was fairly unpleasant to read.
Yeah, I never really understood why everybody thought:
if {
if {
if {
}
}
}
was so much better than
if {
if {
if {
}}}
Sort of like why I don't get why people think XML end tags that match by
name are such a big thing.
But, then, I'm not particularly religious about whitespace or braces.
And I've been using a decent editor from my initial introduction to
workstations and mainframes. (Okay, that's a lie. But I knew that
XEDIT was crap even when I didn't know what a good editor was.)
<shrug>
-a
--
[email protected]
http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-lpsg