3 ms·
as the article says, the correct solution is to provide an API that applications can access to check if the functionality is offered at all. functions that ret
by notatoad 3y ago
as the article says, the correct solution is to provide an API that applications can access to check if the functionality is offered at all.
functions that return correct null responses isn't the ideal behaviour, it's the fallback for when you're already off the happy path.
- crabmusket 3y agoI think there's a difference between an API that can be used to check if functionality is available, and an API that must be used before that functionality is offered to the application. E.g. CheckForPrinting : () -> Maybe PrintToken ShowPrintDialog : PrintToken -> Dialog