Avatar

tnuctip

tnuctip@mastodonapp.uk
Joined
0 posts • 4 comments

Fictional extinct arboreal pack predator, or whatever sort of hominid would choose that as a profile.

Direct message

@FinishingDutch @ahornsirup

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

permalink
report
parent
reply

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

permalink
report
parent
reply

@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.

permalink
report
parent
reply

@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.

permalink
report
parent
reply