Re: Plural dispatch

2012-09-11 Thread Brent Millare
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

Re: Plural dispatch

2012-09-11 Thread Chris Ford
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

Re: Plural dispatch

2012-09-06 Thread Brent Millare
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

Plural dispatch

2012-09-05 Thread Chris Ford
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