This is the mail archive of the
kawa@sourceware.org
mailing list for the Kawa project.
Re: no matching syntax-rule for define
- From: Per Bothner <per at bothner dot com>
- To: kawa at sourceware dot org, Maxim Veksler <maxim at vekslers dot org>
- Date: Tue, 14 Dec 2010 16:16:15 -0800
- Subject: Re: no matching syntax-rule for define
- References: <AANLkTinZ9-4S052HBtHgG6RBzVtbk_r_u0kM_v8ha0jK@mail.gmail.com> <AANLkTinujZCHSin_POmX8cF1eeMVWQ+TwcROSwvBqKGM@mail.gmail.com>
On 12/14/2010 03:51 PM, Maxim Veksler wrote:
Hello,
I'm learning the language.
I'm following the course
http://www.youtube.com/user/StanfordUniversity#p/c/9D558D49CA734A02/18/_cV8NWQCxnE
, where the professor explains (at time 41:10) the expression: (define
add (x y) (+ x y))
For some reason when I type this into kawa prompt (java -jar
kawa-1.11.jar), I get this error:
#|kawa:43|# (define add (x y) (+ x y))
/dev/stdin:43:1: no matching syntax-rule for define
He left out required parentheses - it should be:
(define (add (x y)) (+ x y))
The lecturer seems to let his familiarity of the Lisp language
get confused with the Scheme language ... (He makes a few other
mistakes.)
P.S. Interesting. I didn't know they used Kawa in this class.
--
--Per Bothner
per@bothner.com http://per.bothner.com/