I recently learned about typed/racket/class. Although it is apparently still experimental, I believe it can serve as a concrete example of structural typing. Although it is a bit more verbose than the pseudocode in the book, it is nice
to see that TR infers the corresponding types, and that it works for node%, even though the type is not precisely equal.
Contact Details
bremner@unb.ca
Which part are you commenting on?
p. 166, v3.2.2
What's your suggestion?
I recently learned about typed/racket/class. Although it is apparently still experimental, I believe it can serve as a concrete example of structural typing. Although it is a bit more verbose than the pseudocode in the book, it is nice to see that TR infers the corresponding types, and that it works for node%, even though the type is not precisely equal.