Typed racket and generics?

39 views
Skip to first unread message

Stuart Hungerford

unread,
Jan 30, 2021, 4:20:04 AM1/30/21
to Racket Users
Hi Racketeers,

Is there any way to have Racket code using `define-generics` interact with typed Racket code?  (I think the answer is "no", but I thought I'd check for sure).

Thanks,

Stu

Sam Tobin-Hochstadt

unread,
Feb 2, 2021, 11:13:37 AM2/2/21
to Stuart Hungerford, Racket Users
Unfortunately this isn't supported yet. Right now, you can use struct
type properties directly to build your own generics, but you can't use
the generics library.

Sam
> --
> You received this message because you are subscribed to the Google Groups "Racket Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to racket-users...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/racket-users/333b7744-85e8-4745-aad2-77272d1e20c5n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages