4 ms·
Interesting choice to treat panics as worse bugs than misinterpreting the data. I generally like adding assertions to my code, in order to turn bugs where I mis
by CodesInChaos 1y ago
Interesting choice to treat panics as worse bugs than misinterpreting the data. I generally like adding assertions to my code, in order to turn bugs where I mishandle the data into exceptions/panics.
- raverbashing 1y agoThey are right. In real life triggering a panic means your service stops, which could mean just a dns resolver or a big part of the system. So yeah it should return whatever it can (or an error code) without crashing