Template instantiation syntax
Jarrett Billingsley
jarrett.billingsley at gmail.com
Sat Oct 11 17:44:21 PDT 2008
On Sun, Oct 12, 2008 at 12:44 AM, bearophile <bearophileHUGS at lycos.com> wrote:
> Robert Fraser:
>> I think a context-free grammar is a big win all-around.
>
> Such things have some disadvantages too, like not allowing (?) a syntax like, for example:
> foreach (i, x in something) {...}
>
> Instead of the current more error-prone:
> foreach (i, x; something) {...}
It's not "error-prone", it's "you're not used to it." You very
commonly fall into the fallacy that if you think something's
bad/confusing/not what you're used to, then _everyone_ must think that
way and therefore it _must_ change. Sorry, that's not the way it
works. I haven't mistyped a foreach loop, ever. Deal with it.
More information about the Digitalmars-d
mailing list