3 ms·
> The contract is that libX_foo can return null. I'd expect any reasonable library to say “libX_foo returns null if [something happens]”. What use is there in
by xigoi 4y ago
> The contract is that libX_foo can return null.
I'd expect any reasonable library to say “libX_foo returns null if [something happens]”. What use is there in a procedure that can just return null whenever it feels like it?
- account42 4y agoIt returns null when it fails to do its task for some reason. It is not unreasonable for the condition for that failure to be complex enough or change over time so it doesn't make sense to spell it out in the interface contract.