On Tue, Jan 31, 2017 at 4:49 PM, Ronie Uliana <ronie.uli...@gmail.com> wrote: > Let's assume I have a struct that is not mine (like ddict > [https://pkgn.racket-lang.org/package/ddict], or some of pfds > [https://pkgn.racket-lang.org/package/pfds]). I'd like to implement generics > for them that also are not mine :p (like data/collection from Alexis King). > > 1 - Is it possible? > 2 - How do I do that? >
Short of sending a pull request to the package maintainer, I don't think it's possible, and it seems like any attempt to make that work would invite modularity problems similar to the instance coherence problem for type classes. Consider two modules that implement gen:serializable for the same struct type in incompatible ways. -J -- 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+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.