News for hackers. Stuff that matters.
Re:Esoteric C++ Contest 2018 by krapp on Saturday March 23, 2019 @09:44AM (#19470414)
I think templates are fine as long as they're not abused. Unfortunately, since C++ templates are Turing complete, people will inevitably go overboard with them.

My personal rule is to never nest more than two templates. You can have a template inside a template, but anything deeper than that should be refactored or at least split up into typedefs for readability.

There are no comments on this comment yet.