Page 2 of 2

Re: EQ newbie question

Posted: Sat Jul 30, 2011 7:42 am
by smithzv
sylwester wrote:Another relic from that paper that is somewhat useless today but still part of CLISP is atom.
You find ATOM to be useless?

Code: Select all

#'atom == (lambda (x) (not (consp x)))
I find I use it all the time when traversing a syntax tree.

Re: EQ newbie question

Posted: Mon Aug 01, 2011 5:46 pm
by sylwester
smithzv wrote:
sylwester wrote:Another relic from that paper that is somewhat useless today but still part of CLISP is atom.
You find ATOM to be useless?

Code: Select all

#'atom == (lambda (x) (not (consp x)))
I find I use it all the time when traversing a syntax tree.
Not useless as a function but, like eq, has a misguiding name. Must say I prefer (not(consp x)) any day.