[-] tnuctip@mastodonapp.uk 31 points 6 months ago

@FinishingDutch @ahornsirup

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

[-] tnuctip@mastodonapp.uk 1 points 9 months ago

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

[-] tnuctip@mastodonapp.uk 1 points 9 months 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.

[-] tnuctip@mastodonapp.uk 4 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.

tnuctip

joined 2 years ago