[racket] Typed racket problem
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