logoalt Hacker News

feverzsjtoday at 1:01 PM3 repliesview on HN

Reflections, especially static ones, are horrible for debugging.


Replies

limaoscarjuliettoday at 7:44 PM

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.

RyanJK5today at 1:11 PM

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.

pjmlptoday at 2:18 PM

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

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