Unencumbered V0.1.2: Write Cucumber step definitions in D

Dicebot via Digitalmars-d-announce digitalmars-d-announce at puremagic.com
Fri Apr 25 03:02:43 PDT 2014


On Friday, 25 April 2014 at 09:45:06 UTC, Rikki Cattermole wrote:
> Also when using things like __LINE__ keep them to template 
> args, as they are inferred to the initiation if possible.

This is antipattern. Default function arguments for __LINE__ and 
__FILE__ are also evaluated at call site. Moving this to template 
parameter creates huge amount of template bloat and must be used 
only if there is no other way around (that usually implies 
variadic arguments)


More information about the Digitalmars-d-announce mailing list