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,86d333341f490421 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-03-28 08:47:26 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!colt.net!news.tele.dk!not-for-mail Message-ID: <3CA34918.1020300@oek.dk> Date: Thu, 28 Mar 2002 17:47:20 +0100 From: "Peter I. Hansen" User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:0.9.9) Gecko/20020320 X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Natural data type ? References: <3CA12AD4.2030807@oek.dk> <3CA25342.1080906@oek.dk> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Organization: TDC Internet NNTP-Posting-Host: 195.215.62.2 X-Trace: 1017334045 dread01.news.tele.dk 72013 195.215.62.2 X-Complaints-To: abuse@post.tele.dk Xref: archiver1.google.com comp.lang.ada:21771 Date: 2002-03-28T17:47:20+01:00 List-Id: Chad R. Meiners wrote: >I seriously doubt that someone made a random decision. There are many >reasons to define N to include zero, for instance, the positive integers can >easily represented as Z^+ while the negative integers may be represented as >Z^-. There is a very nice symmetry with these representations of disjoint >sets. It doesn't make sense to define the natural numbers to simply be the >set of positive integer because you then have two competing names for the >same set. Thus, it is better for the natural numbers (N) to be a different >set from the positive integers (Z^+). Since zero isn't positive, this >leaves N as the only candidate for containing zero. > >Very likely, whoever made this decision for Ada's data type of natural and >positive had a similar rational reason for making this choice. I just don't >see the designers flipping a coin or playing paper, scissors, rock to >determine which data type gets zero ;) I wasn't around during Ada's initial >design process; perhaps someone on comp.lang.ada was, and they know why or >who made this decision or even if the decision was contested. > >-CRM > Thanks, this is a very good answer. /Peter