(require racket) generally doesn't work in the teaching languages. It
shadows define-struct, in this case, and you get the wrong version (so
you get generative structs).
Why are you doing (require racket)? There's probably some smaller
library you could use that would not shadow core things...
Ro
Hi --
My students noticed that certain check-expect tests stop working in the
presence of (require racket). For example, the check-expect in this three-line
file fails under ISĪ»:
(require racket)
(define-struct foo (x))
(check-expect (make-foo 0) (make-foo 0))
Why is this happening?
Thanks --
2 matches
Mail list logo