Actually since you are using def, I believe your method registrations are
global. You should be using binding with dynamic vars to get thread locals.
Also with mine, since I have the user specify the pluralfn symbol and since
it can be called in another namespace, the namespace of the pluralfn i
ly be useful if you were using plural dispatch as an event
dispatching system, though whether it would be wise is another question...
Cheers,
Chris
On 6 September 2012 20:27, Brent Millare wrote:
> I've made my own take of your plural dispatch system.
>
> https://gist.github.com/365
I've made my own take of your plural dispatch system.
https://gist.github.com/3659663
I switched from using vars and a map for determining which pluralfn to use,
to atoms and metadata tied to the pluralfn. My method reduces the amount of
indirection and invocations. I originally tried to
t;even", for example. That got me thinking whether overlap is a bug or a
feature.
I've hacked together a simple plural dispatch
system<https://gist.github.com/3634871>,
which allows the specification of a custom resolution function that can
decide whether to use one or all