by Deganta · 4y ago · 0 comments
1. Compile time
2. Non-optimized builds
Stuffing everything into the Standard Library using lots of template magic does has its upside, but debug performance is one of the big downsides.
Another one are really clunky interfaces, like std::variant. This should really have been a language feature, not a library features.
All those conversions that you believe only happen if you implement the spec “step by step” always happen.
Actual implementations of languages then implement the explicitly described semantics, in whatever way they feel is most efficient.