News for hackers. Stuff that matters.
Re:A brief guide to C++ template metaprogramming by gpderetta on Monday September 26, 2016 @06:23AM (#12580634)
Templates are quite complex for sure, but certainly not an hack.

They are also unlike scheme macro system which works at the AST level; C++ templates work at the type level, which scheme lacks entirely[1].

> what if a function creates a lambda or takes a function pointer argument called ioctl, and your template expansion calls ioctl?

Are you talking about macro hygiene? C++ templates are hygienic, except for type dependent lookup which intentionally isn't.

Re:A brief guide to C++ template metaprogramming by qwertyuiop924 on Monday September 26, 2016 @06:39AM (#12580705)
Ah, so there is hygene. I couldn't tell, so I assumed not.