tnuctip

joined 2 years ago
[–] [email protected] 31 points 9 months ago

@FinishingDutch @ahornsirup

But Wikipedia aren't charging people to see the work you contributed for free. That's a significant difference.

[–] [email protected] 1 points 1 year ago

@Maoo @onlinepersona
That's unfair. Java did everyone a huge favour by giving a practical demonstration of why (mandatory) checked exceptions are awful.

[–] [email protected] 1 points 1 year ago

@SittingWave @mac

That article isn't really advocating handling _all_ errors as values AFAICS - it just doesn't distinguish between _exceptional_ and _normal but unsuccessful_ paths.

For a wrapper around an HTTP transport, returning HTTP responses instead of raising an exception for stuff like "403 Forbidden" is probably reasonable. Their own example code is full of exceptions, though.

[–] [email protected] 5 points 1 year ago

@Sternout @jnovinger
Maybe, but (apart from the "Accidental Immortalisation" case mentioned in PEP 683) these things are created deliberately by C extensions.
A sane extension shouldn't be building loads of them on the fly in the first place.