[racket] why is the comparimng always false

From: Matthias Felleisen (matthias at ccs.neu.edu)
Date: Fri Jun 29 15:47:24 EDT 2012

On Jun 29, 2012, at 3:14 PM, Roelof Wobben wrote:

> ; Te gebruiken structs
> 
> ; Design a world program that works with both cats and chameleons:
> ; A VAnimal is either
> ; – a VCat
> ; – a VCham
> (define-struct Vanimal (Vchat Vcham))


Please re-read the chapter. The above is completely wrong. 

EITHER a VAnimal is one of two things 
OR it is a combination of two things. 

You can't have it both ways. -- Matthias



Posted on the users mailing list.