Semicolons: mostly unnecessary?

AJ aj at nospam.net
Wed Oct 21 16:35:32 PDT 2009


"Ary Borenszweig" <ary at esperanto.org.ar> wrote in message 
news:hbo40c$2rdb$1 at digitalmars.com...
> BCS wrote:
>> 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
>
> If you don't have semicolons this is also true, for example
>
> a = somefunc( first_param,
>        second_param)
> b = something_else
>
> I can insert a line break there without confusing the parser because the 
> parser is expecting the function call to end

I wonder though if that isn't getting "too sophisticated/clever" as opposed 
to requiring some kind of long-line-continuation-character (?).






More information about the Digitalmars-d mailing list