GitHub - RReverser/serdebug: Serde-based replacement for #[derive(Debug)]
(github.com)
from snaggen@programming.dev to rust@programming.dev on 30 Sep 08:04
https://programming.dev/post/20045263
from snaggen@programming.dev to rust@programming.dev on 30 Sep 08:04
https://programming.dev/post/20045263
Last week I basically duplicated the serialization code to provide better debug output… today, I see this pass in my Mastodon feed. 😀 Well… what are the odds… most likely close to 100% according to how the universe seems to operate.
threaded - newest
Why was duplication needed, instead of implementing Debug using serialized output?
And why would one want to rename stuff…etc in
Debug
anyway? It’s for debugging?This looks like purpose mismatch to me.
I wanted to use the debug fmt functions, to allow for pretty debug also.
I just looked at the code, and it’s actually a neat idea implementation wise, and I see now how it helped you.
But I’m still of the opinion that its a purpose mismatch.
Yeah tagging things for debug purposes feels odd