[phobos] [D-Programming-Language/phobos] 6c289a: Fix unnecessary template bloat in enforce.

Jonathan M Davis jmdavisProg at gmx.com
Mon Jul 23 15:21:26 PDT 2012


On Monday, July 23, 2012 23:31:49 Martin Nowak wrote:
> It's probably worth to reevaluate the usefulness of this template special
> case.
> http://dlang.org/template.html#TemplateValueParameter

I think that there are a few cases where it's useful (e.g. where you're 
dealing with a template which _isn't_ a function), so having it's probably a 
good idea. However, using it when default function parameters would work is 
_not_ a good idea.

- Jonathan M Davis


More information about the phobos mailing list