On Wednesday, 20 January 2016 at 22:00:45 UTC, Steven Schveighoffer wrote:
Imagine if you such a call returned something, and you simply used it throughout the rest of your function. The compiler could rewrite this as a template and compile all three versions and branch to the appropriate one, but your code would simply read as a straightforward procedural function.

But if you abstract away the dispatch part into a (meta)template function like I suggested, the caller would still be just as linear, right?

How would the client code be simpler with a built-in language feature?

 — David

Reply via email to