3 ms·
> His suggestion is to accumulate verbose messages in memory/disk, so we can later decide whether to dump them out (e.g. in a top-level error handler). Interes
by adrianmsmith 5y ago
> His suggestion is to accumulate verbose messages in memory/disk, so we can later decide whether to dump them out (e.g. in a top-level error handler).
Interesting; I've definitely seen that with unit test frameworks. Where in addition to assertEquals(...) there was an annotate(...) method which just took a string, and was stored for that unit test. If the unit test eventually failed, all the previous annotations for that unit test were printed, otherwise they weren't.
https://metacpan.org/pod/Test::Unit::TestCase#annotate-(MESSAGE) https://metacpan.org/pod/Test::Unit::TestCase#annotate-(MESS...