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: 11232c,606685f2786a81e9 X-Google-Attributes: gid11232c,public X-Google-Thread: 103376,8f2146b9c1ab93cc X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-04-05 11:45:33 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!news.mailgate.org!mygate.mailgate.org!198.207.153.205!not-for-mail From: "Kent Paul Dolan" Newsgroups: comp.lang.ada,misc.misc Subject: Re: Upping the ante (was): ToString? Date: Fri, 5 Apr 2002 19:45:32 +0000 (UTC) Organization: Mailgate.ORG Server - http://www.Mailgate.ORG Message-ID: <5e081eac7f7a97a4b8c0fa173d366970.48257@mygate.mailgate.org> References: <3C918515.20808@worldnet.att.net> <6e9cd02332705638a4cd86a4a2f521e7.48257@mygate.mailgate.org> NNTP-Posting-Host: 198.207.153.205 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: news.mailgate.org 1018029775 2743 198.207.153.205 (Fri Apr 5 21:45:31 2002) X-Complaints-To: abuse@mailgate.org NNTP-Posting-Date: Fri, 5 Apr 2002 19:45:32 +0000 (UTC) Injector-Info: news.mailgate.org; posting-host=198.207.153.205; posting-account=48257; posting-date=1018029775 User-Agent: Mailgate Web Server X-URL: http://mygate.mailgate.org/mynews/comp/comp.lang.ada/5e081eac7f7a97a4b8c0fa173d366970.48257%40mygate.mailgate.org Xref: archiver1.google.com comp.lang.ada:22161 misc.misc:6138 Date: 2002-04-05T19:45:32+00:00 List-Id: "Eric G. Miller" wrote: > Kent Paul Dolan wrote: > > But the java SDK API docs recommend exactly that for every class, you > > override this behavior inherited from Object, wherever some other > > toString() implementation makes more sense for your object, which is why > > I consider this to be an implied contract. If you don't keep the > > contract, and go with the default, you deserve the results, it seems to > > me. > Implied contracts don't hold up in court. Especially when they only > make recommendations... An interesting, (and cynical) view, but since the first beneficiary of overriding *.toString() is always the programmer himself or herself (toString() is an essential debugging tool), this isn't quite the same as the instances you cite. xanthian. -- Posted via Mailgate.ORG Server - http://www.Mailgate.ORG