boolean values in krb5.conf
Derek Atkins
warlord at MIT.EDU
Mon Feb 10 11:22:28 EST 2014
Greg Hudson <ghudson at MIT.EDU> writes:
> On 02/08/2014 04:51 AM, Wang Weijun wrote:
>> at src/util/profile/prof_get.c#L337. So the opposite of "t" is "nil"
>> instead of "f". Is there a history here?
>
> Yeah, in LISP, nil is the empty list, which is the only value which
> evaluates as false, and t is a boolean true.
>
> Did you run into a case where someone expected "f" to work as a boolean
> false value?
In scheme it's '#f' -- nil is... different. C.f:
guile> (if #f 1 2)
2
guile> (if #t 1 2)
1
guile> nil
ERROR: Unbound variable: nil
ABORT: (unbound-variable)
-derek
--
Derek Atkins, SB '93 MIT EE, SM '95 MIT Media Laboratory
Member, MIT Student Information Processing Board (SIPB)
URL: http://web.mit.edu/warlord/ PP-ASEL-IA N1NWH
warlord at MIT.EDU PGP key available
More information about the krbdev
mailing list