Unused import tool
Walter Bright
newshound2 at digitalmars.com
Tue Aug 22 01:54:48 UTC 2023
On 8/21/2023 3:45 AM, FeepingCreature wrote:
> To be fair, these are terrible: like half of them don't work, because the
> variables involved have been renamed or removed entirely.
I run across that now and then, and fix them. It's not been a significant problem.
> Something like
> `debugPrintf("...", args)` that compiled to a no-op in release mode would be a
> lot better, and also avoid the "unused import" problem, no? Maybe even
> `debugPrintf!"semantic2"("...", args)`, or `alias debugPrintf =
> debugPrintf!"semantic2"` at the top.
I did things like that for a while, and finally reverted to the stupid simple
approach of printf.
More information about the Digitalmars-d
mailing list