Re: [racket-users] Is it possible to implement generics to an already defined struct?

2016-03-06 Thread Ronie Uliana
Thank you, Andrew! :) -- 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

Re: [racket-users] Is it possible to implement generics to an already defined struct?

2016-03-05 Thread Andrew Kent
When you define a generic interface, you can specify defaults for _any_ kind of value you want. Here is a small example that might be useful (which is really just the example here tweaked to be simpler and handle a struct

[racket-users] Is it possible to implement generics to an already defined struct?

2016-03-05 Thread Ronie Uliana
Sorry for the beginner question :( I'm learning Racket and it is an amazing language. Documentation is great, but I couldn't find this. Let's say I have a struct defined somewhere I have no control: (struct blah (x y)) Now, in my module, I have this generics: (define-generics my-thing