logoalt Hacker News

feverzsjtoday at 1:01 PM2 repliesview on HN

Reflections, especially static ones, are horrible for debugging.


Replies

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.