Am 17.08.2010 01:33 schrieb Phillip J. Eby:
> So, I guess what I'm saying is that PEAK-Rules has *always* had
> priorities -- they're just called "putting the base cases in the body"
> and "use @around methods for things that need to take precedence over
> everything else".

Well, sometimes you still may want to have more levels of priority.

Regarding TurboJson, you're right though, the existing functionality should suffice and your ideas look like reasonable solutions to me. I'll probably try to change TurboJson to work along these lines you pointed out and see if I can get it done without breaking backward compatibility. TurboJson was developed on rule-dispatch originally (which didn't have an "around" iirc), and later people probably only added upon that without really thinking about how to do it properly.

Your explanations and hints are highly welcome. It takes some time to get a feeling for how to adequately apply generic functions.

Btw, while TG1 heavily relied on generic functions, TG2 does not use them any more and also recently ditched TurboJson. I guess the reason is that rule-dispatch and peak-rules can cause installation troubles, and people seem to have difficulties to wrap their head around generic functions generally. Maybe you need to do explain and advertize more ;-)

-- Christoph

--
You received this message because you are subscribed to the Google Groups 
"TurboGears" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/turbogears?hl=en.

Reply via email to