why ; ?
Janice Caron
caron800 at googlemail.com
Tue May 6 21:22:16 PDT 2008
On 07/05/2008, Daniel Giddings <daniel.giddings at gmail.com> wrote:
> while you might need a \ line break char for some code, it is
> very much the exception to the rule
Not if you are obliged (against your will) to write maximum-80-column
code, it isn't. In that circumstance, wrapping lines is very, very
common.
You are also forgetting that any statement block { ... } is
effectively a single statement, and that, if (...) { ... } else { ...
} is also a single statement. And within any statement, passing a
delegate literal to a function - e.g foo(delegate int(int x){ ... });
is still a single expression. In fact the whole concept of what is or
is not a "single statement" is really quite nebulous.
I suppose you could always make indentation significant too. But
here's an idea - how about, let's not.
Please let's keep our semicolons.
More information about the Digitalmars-d
mailing list