Template parameter deduction for constructors?

Peter Alexander peter.alexander.au at gmail.com
Sat Apr 13 01:40:14 PDT 2013


On Friday, 12 April 2013 at 23:00:20 UTC, bearophile wrote:
> The purpose of this idea is to avoid the helper functions that 
> are currently used in D to build template structs/classes. Even 
> if this feature is restricted to only a subset of all the 
> templated structs/classes it seems useful to avoid some 
> boilerplate code.

This just seems like a bandaid solution to the problem. If it 
works in this case then beginners will think it works in every 
case, and will be even more confused when it stops working.

Simple with minor inconvenience is better than complex in my 
opinion.


More information about the Digitalmars-d mailing list