4 ms·
> I've learned this as "swallowing errors" and IMO it's a poor practice This is not swallowing errors. This, in the Linux parlance, is not breaking user-space
by wvenable 3y ago
> I've learned this as "swallowing errors" and IMO it's a poor practice
This is not swallowing errors. This, in the Linux parlance, is not breaking user-space.
There are two ways to handle the situation presented: error out because the machine can never have printers or return an empty list of printers because the machine can never have printers. They're both valid but only one of them doesn't break user-space.