Hacker News new | ask | show | jobs
by feverzsj 14 days ago
Reflections, especially static ones, are horrible for debugging.
4 comments

This library tries its best to mitigate that, catching common errors and whatnot, but it can definitely still happen. C++ doesn't have full token injection yet, so it avoids some of the more common pitfalls, if incidentally.

As an aside, you may want to check out Jai's approach. I believe everything you generate statically gets turned into a file by the compiler for debugging purposes, which it provides references to in the output.

Depends pretty much on the language and IDE tooling being used.

Those against IDEs, well they already voted against good tooling in first place.

I get a heart attack whenever I have to view core file from a decently complicated C++ program. The amount of template-in-a-template-in-a-template...(and this continues for some time) is not so readable to me. Maybe it is just me.
IDEs like CLion now have compile time visual debuggers.