[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Noob question -- On error, exit function and terminate script
- From: David Kastrup <dak@...>
- Date: Mon, 27 Jun 2011 18:36:53 +0200
>> I must nevertheless admit that the description for assert is slightly
>> vague:
>>
>> "Issues an error when the value of its argument v is false (i.e., nil or
>> false);..."
The explanation in parens seems absurd. For it to make some sense, one
would have to write "is a false condition" (namely unambiguously using
"false" as an adjective rather than a noun, when the noun is used in a
different meaning in the parenthetical remark), but it is probably
easier to just write "when the value of its argument v is nil or false"
in the first place. If an idiomatic expression is needed, "is false" is
misleading, and "counts as false" or something similar would be better.
--
David Kastrup
- References:
- Noob question -- On error, exit function and terminate script, marbux
- Re: Noob question -- On error, exit function and terminate script, Rebel Neurofog
- Re: Noob question -- On error, exit function and terminate script, marbux
- Re: Noob question -- On error, exit function and terminate script, Lorenzo Donati
- Re: Noob question -- On error, exit function and terminate script, Luiz Henrique de Figueiredo