Wessel

Results 304 comments of Wessel

EDIT: Please ignore the second part of the message before the edit. I haven't yet had my morning coffee...

@PhilipVinc, I might have found an edge case that doesn't work after all: ```python from plum import dispatch class A: pass class B: pass @dispatch def f(x: int, *ys: A):...

> This calls into Comparable meta class, where it is defined to be (...) but I believe this is wrong, Hmm, I'm confused about this. Mathematically, I believe that `x...

Hey @PhilipVinc! Apologies for the delay. I was offline for a few days due to personal circumstances. I've thought about it a bit more, and perhaps there is a simpler...

@PhilipVinc Wouldn't `(int, *int)` always have precedence over `(int, int, *int)`, so you wouldn't be able to ever call the latter? Actually, with the subset relation, the two would actually...

@PhilipVinc Hmm, you're completely right. This might turn out to be complicated than anticipated. I think I'm convinced that two varargs signatures cannot be compared in isolation, by the following...

Hey @PhilipVinc! I think this extensive issue has shown that a general solution is complicated and perhaps not feasible, so it might sense to go with something that works better...

@nstarman is right! :) @Wouter1 to use dispatch, your arguments must be given as positional arguments. `B(**{'x':1})` becomes `B(x=1)`, which breaks dispatch, which requires `B(1)` instead of `B(x=1)`. Plum's design...

Hey @Wouter1! Could you give some more context about what you're trying to achieve? One alternative is to splat using only a single `*`: ```python from plum import dispatch class...

If you really need to splat argument from a dictionary, a simpler alternative is to convert the dictionary to positional arguments by using a wrapper method: ```python from plum import...