B
Bill Pursell
For several years now, "folding" has become more and more
common in text editors. That has had an affect on my
commenting style. For example, the appealing layout:
int
foo(void)
{
/** Brief explanation of foo.*/
....
}
has now changed to:
int
foo(void)
{ /** Brief explanation of foo.*/
....
}
I find the second layout ugly, but when you fold based on brackets,
the comment remains visible, while the comment in the first layout
gets hidden in the fold. Similarly,
if (expr) {
/* brief comment*/
statement;
}
Is now more convenient to write with the comment on the line with
the open brace.
I'm curious to know how folding is affecting people's sylistic
conventions.
common in text editors. That has had an affect on my
commenting style. For example, the appealing layout:
int
foo(void)
{
/** Brief explanation of foo.*/
....
}
has now changed to:
int
foo(void)
{ /** Brief explanation of foo.*/
....
}
I find the second layout ugly, but when you fold based on brackets,
the comment remains visible, while the comment in the first layout
gets hidden in the fold. Similarly,
if (expr) {
/* brief comment*/
statement;
}
Is now more convenient to write with the comment on the line with
the open brace.
I'm curious to know how folding is affecting people's sylistic
conventions.