News for hackers. Stuff that matters.
Re:A polyglot's guide to multiple dispatch by kazinator on Tuesday April 19, 2016 @04:14PM (#11529918)
But then, what is the point of foo being associated with the class of bar?

Multiple dispatch screams for the abolishment of methods as properties of objects, in favor of generic functions.

Youc an still have the syntactic sugar obj.foo(arg), but it basically just translates to foo(obj, arg) where foo is a generic function not associated with foo's class in any way, and obj and arg have equal status.

This generic function is what has methods.

There are no comments on this comment yet.