From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,4687ad82921cf6ad X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2004-01-17 13:24:52 PST Path: archiver1.google.com!news2.google.com!newsfeed2.dallas1.level3.net!news.level3.com!news-out.visi.com!petbe.visi.com!newspeer.monmouth.com!newsfeed.mathworks.com!nntp.TheWorld.com!not-for-mail From: Robert A Duff Newsgroups: comp.lang.ada Subject: Re: issue with implementing a visitor design pattern Date: 17 Jan 2004 16:24:52 -0500 Organization: The World Public Access UNIX, Brookline, MA Message-ID: References: <100dqeul3pqiua0@corp.supernews.com> NNTP-Posting-Host: pip1-5.std.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: pcls4.std.com 1074374692 7019 192.74.137.185 (17 Jan 2004 21:24:52 GMT) X-Complaints-To: abuse@TheWorld.com NNTP-Posting-Date: Sat, 17 Jan 2004 21:24:52 +0000 (UTC) User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 Xref: archiver1.google.com comp.lang.ada:4502 Date: 2004-01-17T16:24:52-05:00 List-Id: "Robert I. Eachus" writes: > The much deeper problem you have is that the Visitor pattern is a waste > of effort in Ada. Not wrong, or unimplementable, but the pattern as > such is much heavier weight than it needs to be. I agree. In fact, I'd say "visitor" is my least favorite design pattern of the ones in the Gamma et al book. "Visitor" has all the disadvantages of a case statement (over dispatching calls), with none of the advantages! - Bob