Nobody understands templates?

Dicebot public at dicebot.lv
Sun Mar 2 02:05:03 PST 2014


On Sunday, 2 March 2014 at 06:50:02 UTC, Steve Teale wrote:
> On Saturday, 1 March 2014 at 22:16:54 UTC, woh wrote:
>> You probably don't have a good understanding of templates if 
>> you have only used 2 in your entire codebase.  Or you are 
>> talking about a very tiny codebase.
>>
> That's just what us template-blind people want to hear - 
> confirmation that we are in fact stupid.
>
> The project I'm talking about is about 30000 loc excluding 
> blank lines and comments.
>
> What I'd like to see is a tool, or a switch on the compiler 
> that emits the code generated by templates. We - the 
> template-blind -  would have it sussed in a heartbeat then.
>
> Steve

There is nothing wrong about not using templates. Almost any 
compile-time design can be moved to run-time and expressed in 
more common OOP form. And using tool you have mastery of is 
usually more beneficial in practice than following the hype.


More information about the Digitalmars-d-learn mailing list