Semicolons: mostly unnecessary?
BCS
none at anon.com
Wed Oct 21 15:39:34 PDT 2009
Hello bearophile,
>> opens up bizarre parsing corner cases,
>> and makes error messages uglier.
> I have yet to see a proof of this.
>
Just off hand for parsing issues:
- it allows long code lines to be folded
- it acts as a bug check on reformat:
origonal code
MyType t; // result of -t and opSub_r(int) are lvalues
auto a = 5
-t = 3
MyType t;
auto a = 5 -t = 3 //reformat and forgot to add ';' Oops
More information about the Digitalmars-d
mailing list