Hacker News new | ask | show | jobs
by alephr 2819 days ago
metaprogramming is useful (for the same reason programming is, computers are great at transforming data. your program is data and it can be much faster to write it with this in mind) and templates are an existing, portable way to do metaprogramming. despite how bad they are designed, that they already exist and are portable puts them in a position where they can be the most cost effective way to do something