3 ms·
This is mostly orthogonal to the article's point, but the motivating example ignores the actual syntax that already exists in C++(11) to initialize classes:
by pbsd 13y ago
This is mostly orthogonal to the article's point, but the motivating example ignores the actual syntax that already exists in C++(11) to initialize classes:
std::map<std::string, int> m1 =
{
{"one", 1},
{"two", 2},
{"three", 3}
};
It may be relevant to mention IntelLib [1] here, which is one of many (ab)uses of C++ to enact DSLs.
[1] http://www.intelib.org/intro.html http://www.intelib.org/intro.html