Thread: bad-idea-p?
View Single Post
  #8 (permalink)  
Old 01-02-2007, 10:58 PM
Dan Bensen
Guest
 
Posts: n/a
Default Re: bad-idea-p?

Ken Tilton wrote:
> inconsistencies. meanwhile, zero-p? Nah, we need to borrow back
> something else from scheme: zero?


Or even better, Python: is-zero or eq-zero.
The Scheme/Ruby notation confuses the predicates themselves with the
operators that test them. The name of a predicate might as well be a
predicate.

So lispifying the C ?: operator would get you something like
(? (is-zero x) (dont-divide-by x) (divide-by x))

--
Dan
www.prairienet.org/~dsb
Reply With Quote