News for hackers. Stuff that matters.
Re:If you're just going to sit there doing nothing, at least... by admax88qqq on Saturday February 17, 2024 @11:17AM (#39410765)
Nah I don't think this counts as swallowing errors.

There's nothing wrong or buggy about the printing API on Xbox returning a list of no printers instead of an exception.

It's essentially the Null Object design pattern. Even Go implements this in the way that a zero list can still be accessed an jsut behaves as an empty list.

Or in unix how /dev/null exists, which implements the file API but doesn't do anything. This is way nicer than fixing every UNIX program to handle stdout not existing sometimes.

There are no comments on this comment yet.