D's greatest mistakes

Simen kjaeraas simen.kjaras at gmail.com
Tue Nov 30 05:56:50 PST 2010


bearophile <bearophileHUGS at lycos.com> wrote:

> I think the syntax of is() is awful and I'd like to shoot it.

In my opinion, the syntax for is() is not all that bad. However:

- It lacks is ( Type : TypeSpecialization , TemplateParameterList ) and
     is ( Type == TypeSpecialization , TemplateParameterList )
- It does not deduce base templates. Given is ( T == U!V, U, V... ), it
     fails. Given is ( T == MyTemplate!U, U... ), it works.

-- 
Simen


More information about the Digitalmars-d mailing list