版本之间的Dr.Racket问题

问题描述

我正在使用Dr.Racket 6.12版。对于等于运算符,我收到以下错误

> (= 2)
. . =: arity mismatch;
 the expected number of arguments does not match the given number
  expected: at least 2
  given: 1
  arguments...:

但是,有人告诉我,在7.8版中,我们会得到

> (= 2)
#t
> 

mit-schemeclisp都在评估TCommon-lisp: A gentle Introduction这本书声称获得了如上所述的错误

无论我是错的还是实施问题,我都有些困惑。

解决方法

在球拍6.12中,(= 2) 错误。在6.12 documentation中,您可以看到=至少需要两个数字参数。

但是,文档的更高版本starting with Racket 7.1包含注释:

在软件包基础的7.0.0.13版本中进行了更改:在 除了允许两个或更多。