Re: Is there any eq t test in Common Lisp?




"John Thingstad" <john.thingstad@xxxxxxxxx> schrieb im Newsbeitrag news:op.tmscg2hnpqzri1@xxxxxxxxxxxxxxxxx
...
Generally yes, but I just had library function returning either t,
:read-only or nil. I was only interested in the t case.
...

or just (when x ..)
Some frown at this and prefer (when (not (null x)) ..),
but I like generalised boolean.
...

CL-USER 1 > (not (null t))
T

CL-USER 2 > (not (null :read-only))
T

CL-USER 3 > (eq t t)
T

CL-USER 4 > (eq t :read-only)
NIL

?

Andreas

.