Hi Lindsay,

> I missed to include it...
>    (de null (X) (not X))

OK! :)

However, a function call is about the most expensive thing in PicoLisp. It
interprets the parameter list (X), saves the old value of X, evaluates (not X)
and restores the value of X.

Therefore I would recommend

   (def 'null not)

This gives zero overhead :)

> I'll have to work with nond a bit more to get how/when use that.

Good. Just use the opposite conditions. Instead of

      ((not A) (foo))
      ((not B) (bar))
      (T (mumble)) )

you write

      (A (foo))
      (B (bar))
      (NIL (mumble)) )

♪♫ Alex
UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe

Reply via email to