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
Enable the use-function-output-syntax option for ISL and plus. Fixes#208.
The printer for ISL, ISL+ and ASL relies on use-named/undefined-handler
and named/undefined-handler to correctly print named lambdas.
In particular, use-named/undefined-handler checks whether the option
use-function-output-syntax is set.
If use-function-output-syntax is not enabled, then during module
instantiation, user-written functions like my-add1 would be printed differently.
This also affects the error message from the check-expects.
#lang htdp/isl+
(define (my-add1 n) (+ n 1))
my-add1
(check-expect my-add1 2)
Output:
Welcome to DrRacket.
(lambda (a1) ...)
Ran 1 test.
0 tests passed.
check-expect ... error ... :: first argument of equality cannot
be a function, given (lambda (a1) ...)
> my-add1
my-add1
0 commit comments