[Issue 8364] Allow exclamation mark in template definition

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Jul 10 12:31:39 PDT 2012


http://d.puremagic.com/issues/show_bug.cgi?id=8364



--- Comment #4 from David Piepgrass <qwertie256 at gmail.com> 2012-07-10 12:31:37 PDT ---
> Why?

Because one syntax is easier to learn than two. Timon said "when I wrote my
very first function template in D, I used the proposed syntax and was confused
that it didn't work", and that makes two of us (well, I quickly realized why
the compiler complained, but my first instinct is to use !, and it feels really
dumb that I can't).

Plus, the parser might be able to handle ! more quickly, since it will know to
expect "TemplateParameterList" instead of "Parameters".

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list