why ; ?

bearophile bearophileHUGS at lycos.com
Wed May 7 05:12:18 PDT 2008


Pragma:
> ECMAScript (JavaScript) allows this by making the terminating ';' optional,  but you wind up with occasionally hard-to-find ambiguities as a result.  You wind up falling back on using ';' everywhere as a habit just to avoid that problem.

Can someone show me few examples of such ambiguities?
(In about ten thousands lines of D code I have written I think there are very few (or maybe none) of them...).

Bye,
bearophile



More information about the Digitalmars-d mailing list