I am trying to work through EOPL first edition and I have made fairly good progress till chapter 5, working diligently through exercises[1]. I've been using Dr.Racket and #lang eopl
[2] for the exercies.
Earlier in the the book, the authors define a couple of key macros define-record
and variant-case
which are used through out the book. Here is a brief usage of the macros.
(define-record leaf (number))
; that should define three methods
; a. make-leaf - constructor
; b. leaf? - predicate method
; c. leaf->number - a method to look up the members of the record