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.