Semicolons: mostly unnecessary?

Rainer Deyke rainerd at eldwood.com
Wed Oct 21 20:39:10 PDT 2009


Christopher Wright wrote:
> This only leaves the possibility of removing semicolons entirely. This
> would mandate newlines as separators instead. Then you'd need a
> different character to negate newlines. The C/C++ crowd would leave at
> this point, since that's just silly. (Though less typing.)

Trivial solution: use indentation.  If a line is more deeply indented
than the previous line, it's a continuation of the previous statement.

(Of course the people who complain about significant newlines are only
going to scream louder about significant indentation, but you can't
please everybody.)


-- 
Rainer Deyke - rainerd at eldwood.com



More information about the Digitalmars-d mailing list