From: Christian Neukirchen Date: 2005-12-17T08:28:41+09:00 Subject: Re: LISP to Ruby translation Edward Faulkner writes: > On Fri, Dec 16, 2005 at 07:22:39AM +0900, Mark J.Reed wrote: >> Douglas Livingstone wrote: >> > Just a quick one, how do you translate this: >> > >> > ((if (zero? 0) + -) 3 4) >> >> What dialect of LISP is that? Not Common... CL has no "zero?" > > It's Scheme. A much nicer dialect than CL, IMHO. ;-) > > I think in CL the equivalent would be: > > ((if (zerop 0) #'+ #'-) 3 4) No, you need: (apply (if (zerop 0) #'+ #'-) '(3 4)) > Note the ugly sharp-quotes, due to the fact that CL has separate > namespaces for values and functions. And that is why. :-) > regards, > Ed -- Christian Neukirchen http://chneukirchen.org