3 ms·
> You would perform manual static context-sensitive text expansion, just like the C++ template expander does. Sure, if you move all your code into your new lan
by MaxBarraclough 6y ago
> You would perform manual static context-sensitive text expansion, just like the C++ template expander does.
Sure, if you move all your code into your new language that transpiles to C, but that was my point, the lack of language integration means there's plenty it can't do that C++ templates can do.
An example from [0]:
std::is_same_v<int, std::int64_t>
In C, I don't know that there's any way to determine whether int and int64_t are the same type.
[0] https://en.cppreference.com/w/cpp/types/is_same https://en.cppreference.com/w/cpp/types/is_same