I was thinking, if TS gets transpiled to Lua, shouldn't I use Lua to get maximum performance? Maybe with some textmacro preprocessor and WC3 object generator...
Which is why you should use constexpr whenever possible, instead of TMP. Boost.Hana does assertions (e.g. satisfies concept 'Nomadic'?) to validate the parameters, but that of course leaves a lot of ways to do things wrong.
Which is why you should use constexpr whenever possible, instead of TMP. Boost.Hana does assertions (e.g. satisfies concept 'Nomadic'?) to validate the parameters, but that of course leaves a lot of ways to do things wrong.
Oh don't worry I know how template meta programming works especially this training by a C++ committee guy x)
However the huge problem of template metaprogramming is the lack of tools to debug it since it's resolved at compile time.