Improving Compiler Error Messages
Jacob Carlborg
doob at me.com
Mon May 3 02:53:34 PDT 2010
On 5/3/10 10:01, Lars T. Kyllingstad wrote:
> On Sun, 02 May 2010 16:27:47 -0700, Walter Bright wrote:
>> So why does D have ; as a statement terminator? The simple answer is
>> because D is intended to have a low barrier for entry for C, C++, etc.,
>> programmers. The familiar look& feel makes the new language less
>> intimidating. A personal answer is that I simply like it.
>
> For what it's worth, I like it too. :)
>
> I've never understood why people have a problem with the semicolons.
> They've never bothered me, not once. In fact, they just seem to
> magically appear at the end of my statements without me thinking
> consciously about them at all.
>
> -Lars
I would say I like to have them optional. When you start using delegate
literals it's just too much:
foo((int i) { writeln(i); });
The above is quite verbose but in this case removing the semicolons
doesn't help that much.
/Jacob Carlborg
More information about the Digitalmars-d
mailing list