
Please do write about non-toy examples! On Fri, Aug 15, 2014 at 10:55 AM, Matthew Rocklin <mrocklin@gmail.com> wrote:
I've definitely seen homegrown solutions like Alexander talks about in a variety of projects. It has popped up a few times in SymPy.
My implementation was influenced somewhat by Julia's solution which seems fairly sober. Multiple dispatch has demonstrated value in that community.
I used the multipledispatch library in a few of my projects. I can provide examples of where it's been helpful if desired.
On Fri, Aug 15, 2014 at 10:47 AM, Alexander Belopolsky < alexander.belopolsky@gmail.com> wrote:
On Fri, Aug 15, 2014 at 1:28 PM, Guido van Rossum <guido@python.org> wrote:
Are there good uses of singledispatch in the wild even?
In one of my projects, I have a todo item to convert a homegrown {type:func} dictionary based dispatch to singledispatch. It has been open for 5 months already. I wouldn't be surprised if others had something similar: a good-enough (and probably buggy) solution that is not bad enough to justify adding extra dependency in 2.x or replacing with a 3.x only solution.
Multiple dispatch is much harder to get right or even "good enough," so I don't think singledispatch popularity or lack thereof is a good predictor for multipledispatch.
-- --Guido van Rossum (python.org/~guido)