3 ms·
> You can write a function that compiles successfully, leading you to believe the function is syntactically and semantically coherent, only to find that when y
by klyrs 6y ago
> You can write a function that compiles successfully, leading you to believe the function is syntactically and semantically coherent, only to find that when you add an actual call to that function, the compiler now flags errors inside that function.
This happens to me pretty frequently in C++. It won't compile with a syntax error, but if you don't call, say, a templated function, then the compiler simply can't know that the stuff you're doing inside is nonsense.
I don't consider this to be friction. I generally know what I've called, and what I haven't. I expect dark code to be bug-ridden placeholders with good intentions.
- lenkite 6y agoThis will be fixed with C++ 20 concepts right ?