3 ms·
Even when using C, you can use gdb to evaluate subexpressions at a breakpoint. I don't see why is it a code smell just because some tools are lacking. I do thi
by icebraining 11y ago
Even when using C, you can use gdb to evaluate subexpressions at a breakpoint. I don't see why is it a code smell just because some tools are lacking.
I do think it's a smell if the expressions has side effects, but that's a different issue.
- king_magic 11y agoI see it as a code smell precisely because some tools are lacking. I don't code for an ideal world where all tools and developers are perfect - personally, I take a practical approach and code for the real world.
- icebraining 11y agoFair enough, but then it's only a smell in languages lacking in those tools. In my real world, I can debug it just fine.