Pattern talk (was: Who's minister of propaganda this week?)

Cameron Laird claird at starbase.neosoft.com
Thu Mar 15 09:12:55 EST 2001


In article <98q6ro2uoa at news2.newsguy.com>,
Alex Martelli <aleaxit at yahoo.com> wrote:
>"Neelakantan Krishnaswami" <neelk at alum.mit.edu> wrote in message
>news:slrn9b0cc2.gsa.neelk at alum.mit.edu...
>> On Thu, 15 Mar 2001 00:09:30 +0100, Alex Martelli <aleaxit at yahoo.com>
>wrote:
>> >"Steven D. Majewski" <sdm7g at virginia.edu> wrote in message
>> >news:mailman.984595938.11127.python-list at python.org...
>> >    [snip]
>> >> ( OK: not having multiple dispatch in Python means that some manual
>> >> dispatching is sometimes required, but usually this is burried deep
>> >> in some classes __coerce__ method. )
>> >
>> > "Usually" in arithmetic, perhaps.  For fancier stuff, lack of
>> > multimethods sometimes cramps (not that it cramps any less in C++,
>> > mind you), though some patterns (such as 'dynamic visitor') can help
>> > a bit in certain (reasonably frequent) special cases.
>>
>> What's a dynamic visitor? Is it a dictionary keyed on class? That's
>> what I usually do when emulating multimethods in Python.
>
>Sorry, the pattern-name is _Acyclic_ Visitor -- it's fully
>described by its author, Robert Martin, in the PDF at URL
>http://www.objectmentor.com/publications/acv.pdf for example.
			.
			.
			.
Coincidentally, the same Uncle Bob originated the quote which
launched this thread, and is available for open, public inter-
view through the end of business today, Thursday (USA time), at
<URL: http://forums.itworld.com/webx?230@96.WvrdaBXXgrN^0@.ee6eed4 >
-- 

Cameron Laird <claird at NeoSoft.com>
Business:  http://www.Phaseit.net
Personal:  http://starbase.neosoft.com/~claird/home.html



More information about the Python-list mailing list