why ; ?
Robert Fraser
fraserofthenight at gmail.com
Mon May 5 01:19:10 PDT 2008
Tomasz Sowinski wrote:
> Just another feature thought. Never gonna happen, but still...
>
> What's the reason of having lines end with a semicolon? Anything else than a legacy issue with C/C++?
>
> The only thing I can think of is having multiple statements in one line, but that only makes code unreadable. Wouldn't getting rid of ; improve readability?
>
>
> Tomek
So the end of a statement would be marked by a newline character a la
Python?
I usually like to keep my lines under 80 characters long for
readability, and occasionally have long statements (especially if
there's a ternary operator in there somewhere), so my vote is "nay".
There are various other arguments against it, too (especially in that it
makes parsing easier).
More information about the Digitalmars-d
mailing list