Re: [racket-users] Generic dipatch and multi-methods options in DrRacket

2016-02-16 Thread Vincent St-Amour
One of the design goals of the generics system is to avoid relying on global state, which would lead to CLOS-style spooky-action-at-a-distance. For that reason, you can only define methods for a given struct type and interface if you're either (1) defining the struct type (via #:methods) or (2) de

[racket-users] Generic dipatch and multi-methods options in DrRacket

2016-02-15 Thread Alexey Cherkaev
Hi all, I have seen (and used) generic interfaces for structures in Racket. However, they are limited to the same degree as message-passing OOP is limited: the dispatch is based on one argument only. I know there is Swindle (is it still active?) and I could find GLS in packages for DrRacket. I