Y
Hacker News
new
|
ask
|
show
|
jobs
by
ReDress
39 days ago
Aren't C++ templates the desktop version of macros?
Unless I am mistaken macros have been around for ages and are available in many many languages.
1 comments
simonask
39 days ago
For all the shortcomings of C++ templates, they are vastly preferable to preprocessor macros. At least they allow for a modicum of type safety.
link