Hello.I am trying to put the following statement in Dr.Scheme:
{with {x {+ 5 5}} {+ x x}}
but I got an error:
expand: unbound identifier in module in: with
anyone could help me?Thanks.
Hello.I am trying to put the following statement in Dr.Scheme:
{with {x {+ 5 5}} {+ x x}}
but I got an error:
expand: unbound identifier in module in: with
anyone could help me?Thanks.
Are you trying to do this:
(let ([x (+ 5 5)] ) (+ x x ))
It would be really helpful if you could say what dialect of Scheme you are trying to use.
You're taking some PLAI-based course, and you confuse the language that you're working in (Scheme) with the language that you're implementing (WAE, or one of the extensions). These two are very different things, and the book uses curly braces in the latter to avoid confusion.
I can tell you from experience of teaching this class a number of times that it's a dangerous confusion, and the sooner you clarify things the better. If you leave it behind things might get more confusing in the near future. So spend some time on the differences between the two languages, and make sure that you know which parts of the book talk about which language.
Eli is being needlessly argumentative. Neil Butterworth is making a good, simple point: when you post anything related to DrScheme, it usually helps to identify your language level up-front. It so happens that in this case, the language level is really not the issue at all. But Neil's right.