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,103b407e8b68350b X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-01-29 00:28:04 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.freenet.de!fu-berlin.de!uni-berlin.de!tar-alcarin.cbb-automation.DE!not-for-mail From: Dmitry A. Kazakov Newsgroups: comp.lang.ada Subject: Re: Anybody in US using ADA ? One silly idea.. Date: Wed, 29 Jan 2003 09:28:02 +0100 Message-ID: References: <1043339266.922562@master.nyc.kbcfp.com> <7iLY9.2401$qb1.464@nwrddc01.gnilink.net> <1043680098.61106@master.nyc.kbcfp.com> <3afc3v4uur2kvd53v4ul18b5npjfm188o3@4ax.com> <2hbd3vs44v7q0tu2d6pmgdqrhl8nvvr21e@4ax.com> <1043774082.601144@master.nyc.kbcfp.com> NNTP-Posting-Host: tar-alcarin.cbb-automation.de (212.79.194.111) Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: fu-berlin.de 1043828883 34115715 212.79.194.111 (16 [77047]) X-Newsreader: Forte Agent 1.8/32.548 Xref: archiver1.google.com comp.lang.ada:33541 Date: 2003-01-29T09:28:02+01:00 List-Id: On Tue, 28 Jan 2003 12:14:43 -0500, Hyman Rosen wrote: >Dmitry A. Kazakov wrote: >> Why do you think that making related types [Ellipse and Circle] >> siblings (i.e. in fact unrelated) should provide the separation? > >Why do you think that the program objects Ellipse and Circle are >related (as opposed to the mathematical objects, that is)? Because program objects are used to model the mathematical ones. The mathematical fact that circle is an ellipse makes possible substitutability (limited of course) of the corresponding model objects in programming language, which in turn is the basis of code reuse. >After all, mathematical objects are immutable. So what? All values are immutable as well. If you think that immutability implies absolute substitutability, then you are wrong. It is a common delusion. >You have a circle with >a given radius, or an ellipse with given axes. They don't come >with knobs. If you do not like Circle and Ellipse, take int and float in C++. --- Regards, Dmitry Kazakov www.dmitry-kazakov.de