On Sun, Feb 17, 2008 at 12:03:56AM -0800, SJS wrote:
begin  quoting [EMAIL PROTECTED] as of Sat, Feb 16, 2008 at 11:56:12PM -0800:

Negating a symbol such as -x seems "un-Scheme" like.

I would think that proper prefix notation would demand (- x).

Isn't that right?

Surely (- 0 x) would be more consistent.

Well, not given that the '-' function accepts 1 or more arguments.  If it's
going to accept more than 2, it might as well accept 1, and do the
reasonable thing.

It also works with division:

  (/ 3)  =>   1/3

and yes, that's 1/3 as a rational number, provided your scheme supports
rational numbers.

David

--
[email protected]
http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-lpsg

Reply via email to