You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So, at the moment w/ 'define-datatype' you cannot define a polymorphic datatype like (Opt a) -- this is only because I overlooked this feature (oops) as I was hacking together the basic features. It should be an easy addition since it's just riding on top of Racket's structs and they support type variables already.
I'll probably find some time to sit down and add this before next week now that finals are over (yay!).
How might I define datatypes that take a type parameter, like Option?
Would like to be able to define Option like this, but currently can't:
Thoughts?
The text was updated successfully, but these errors were encountered: