3 ms·
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
by admax88qqq 3y ago
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.