Rant after trying Rust a bit
Walter Bright via Digitalmars-d
digitalmars-d at puremagic.com
Thu Jul 23 13:40:17 PDT 2015
On 7/23/2015 12:50 PM, H. S. Teoh via Digitalmars-d wrote:
> That assumes the template author is diligent (foolhardy?) enough to
> write unittests that cover all possible instantiations...
No, only each branch of the template code must be instantiated, not every
possible instantiation. And we have a tool to help with that: -cov
Does anyone believe it is a good practice to ship template code that has never
been instantiated?
More information about the Digitalmars-d
mailing list