On 7/17/2021 1:10 AM, Alexis King wrote:
   :
  a complex, possibly error-prone, way to front-end class method dispatch
   :

This brings me to my question: is there any simpler way to do this? And are there any hidden gotchas to my technique?

I'm still trying to understand how it works.  8-)


However, it occurs to me that, in Lisp, using defgeneric with /method-combination :most-specific-last/  solves the problem quite nicely.  Eli Barzilay's old Swindle package still is available ... I know it had generic methods, but I don't recall whether it implemented method combination.

I also recall some years back that you wrote about using racket/generic  and created a simple multiple dispatch system. There doesn't seem to whole be a lot of documentation regarding generics (other than as applied to interfaces), so I'm fuzzy on what they can / can't do.


Anyway I doubt Lisp-like generic methods are what you want (else you wouldn't have started with classes), but it seems that you are trying to achieve similar functionality.

George

--
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/racket-users/6347d4ce-7652-a44e-9a15-5e2d796797f3%40comcast.net.

Reply via email to