News for hackers. Stuff that matters.
Re:Implementing Function Overloading in Python by arunix on Thursday March 26, 2020 @07:20AM (#22692420)
This seems like a lot of work for a result that isn't even very self documenting compared to some earlier efforts e.g.

Guido's post on multimethods: https://www.artima.com/weblogs/viewpost.jsp?thread=101605

Clojure style multimethods: https://adambard.com/blog/implementing-multimethods-in-pytho...

Re:Implementing Function Overloading in Python by throwaway_pdp09 on Thursday March 26, 2020 @08:54AM (#22693021)
I remember reading the multimethods post and thinking it was wrong as it does not dispatch on all arguments, as dylan would (and I believe closure would too) - correct me if I'm wrong though.
Re:Implementing Function Overloading in Python by arunix on Thursday March 26, 2020 @01:37PM (#22695935)
It does dispatch on the types of all arguments, ... that's the point of it.

Some sample code (I modified it to be commutative on the argument types):

https://gist.github.com/arunbear/caef7546d297c01fddbd3f67117...