[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: about 'fail'
- From: Andrew Gierth <andrew@...>
- Date: Mon, 07 Oct 2019 20:48:20 +0100
>>>>> "Oliver" == Oliver Kroth <oliver.kroth@nec-i.de> writes:
Oliver> there are function returning a boolean value, which in case of
Oliver> failure need to return a third, distinct value. nil. Think of a
Oliver> function that for a file name returns whether it is a directory
Oliver> or not.
Ah yes, the classic "true", "false", "FileNotFound"
https://thedailywtf.com/articles/What_Is_Truth_0x3f_
--
Andrew.