On Sun, Jun 29, 2014 at 1:06 AM, Milan Bouchet-Valat <[email protected]> wrote:
> One solution I thought of is to create a workhorse function
> do_freqtable(weights, subset, x...), which would be specialized on types. It
> sounds like a bit like working around a limitation of keyword arguments, but
> it might be OK, and can easily be changed in the future. What do you think
> about this?

As far as I remember, this is the recommended approach: handle the
keyword arguments and perform whatever high level logic is necessary;
then pass them onto implementation function(s) as positional arguments
so they can participate in multiple dispatch.  This topic has
definitely been discussed before on the mailing list (or maybe a
github issue?) but I came up empty handed after a quick look.

Cheers,
~Chris

Reply via email to