This is the mail archive of the kawa@sourceware.org mailing list for the Kawa project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: no matching syntax-rule for define


I think you meant:

(define (add x y) (+ x y))

right? ;-)

Dominique

On 10-12-14 07:16 PM, Per Bothner wrote:
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.



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]