[racket] Typed racket problem

From: Matthias Felleisen (matthias at ccs.neu.edu)
Date: Mon Dec 1 09:40:53 EST 2014

On Nov 30, 2014, at 11:18 PM, Manfred Lotz <manfred.lotz at arcor.de> wrote:

>> 
>> Now if you are sure that the 15 options you have are all you ever
>> need, why not use a struct with 15 fields or a class with 15 fields?
>> Then you get static checking, without needing any instance-of checks
>> plus occurrence typing. 
>> 
> 
> This is a great idea. I think I will make it a class with 15 fields.


I'd define a syntactic abstraction that generates the class and possible accessors and such. -- Matthias



Posted on the users mailing list.