As someone who spends all day volunteering in Stack Overflow I hope people providing examples were a little bit better at emphasizing error handling.
You should see the destructive effects of bad examples there.
You should see the destructive effects of bad examples there.
You don't have enough information to be outraged at the toy example.
But in this case encapsulation is a leaky abstraction that just makes the diagnosing of an error more cumbersome.
You will eventually prove yourself wrong, since deemphasizing error handling goes wrong very quickly.