[plt-scheme] does = really require 2 arguments ?

From: briand at aracnet.com (briand at aracnet.com)
Date: Fri Feb 27 01:06:16 EST 2004

Why would you want = to take only 1 argument ?

How about in the case of 

(apply = args)

Where args has only 1 argument.
Strictly correct ?  Maybe not.  Useful ? I think so :-)

Brian


A small smattering of examples....

Gambit Version 4.0 beta 1

> (= 1)
#t
> 
*** EOF again to exit
~ $ mzscheme
Welcome to MzScheme version 205, Copyright (c) 1995-2003 PLT
> (= 1)
=: expects at least 2 arguments, given 1: 1
> 
~ $ csi
; This is the CHICKEN interpreter.
; Version 1, Build 0 - linux-unix-gnu-x86
; (c)2000-2003 Felix L. Winkelmann
>>> (= 1)
#t
>>> 
~ $ scsh
Welcome to scsh 0.6.4 (Olin Shivers)
Type ,? for help.
> (= 1)

Warning: invalid arguments
         (= 1)
         (procedure wants: (:real :real &rest :real))
         (arguments are: (:exact-integer))

Error: wrong number of arguments
       ('#{Procedure 66 (= in scheme-level-0)} 1)
1> 



Posted on the users mailing list.