by Ygg2 · 2y ago · 0 comments
If you're constructing invalid `str` you already have severely fucked up. And dog is eating your HDD.
Presumably it'd be better to know this immediately on initialization of the variable rather than at some point in the program that actually expects valid utf8—god forbid you transmit or persist the data before this happens.