Semicolons: mostly unnecessary?

Steven Schveighoffer schveiguy at yahoo.com
Wed Oct 21 15:50:22 PDT 2009


On Wed, 21 Oct 2009 18:05:04 -0400, AJ <aj at nospam.net> wrote:

> Why not eliminate the requirement for semicolon statement terminators
> (unless there are multiple statements per line)? Less typing is "more"!

It has been said in the past that having semicolons makes parsing easier.   
I don't know how true this is, but Walter said it, so it probably is  
pretty important.

You also forget about statements that span multiple lines, functions with  
15 args are much easier to read when they are separated into multiple  
lines IMO.

To all those guys who want no semicolons: get over it.  Use another  
language if you don't want semicolons.  There are some out there.  D isn't  
going to to change one of it's most fundamental constructs because it's  
"less typing".

-Steve



More information about the Digitalmars-d mailing list