|
|
|
|
|
by arethuza
5050 days ago
|
|
I've seen quite a lot of code that kind of looks like this: // Increment the total
log.Debug("total before increment=" + total);
total++;
log.Debug("total after increment=" + total);
I find myself looking at it and going where is stuff actually happening!I sort of wish someone would allow comments and logging to be combined as language features. |
|
It allows the specially-formatted comments to produce debugging output.
From the synopsis:
[1] https://metacpan.org/module/Smart::Comments