Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on A brief guide to C++ template metaprogramming. Parent comment
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.
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.