You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Local definitions used define are not allowed in the body of a lambda-expression.
The natural translation to JavaScript, would be to use function or var, but the semantics
of function differ from the semantics of define in Racket. It would be nice to
support a define-line form, but right now one needs to use var instead.
The error message was particular unhelpful, so I have committed an improvement
to parse-lambda with a better message.
This works:
This does not and seems to trigger a Racket parsing error:
This does not either and is what I'd like to do:
I guess
(define)
is missing from the allowed syntax in(lambda)
or in(var)
.The text was updated successfully, but these errors were encountered: