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,fd63afa4dc364b7e X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-03-30 13:34:05 PST Newsgroups: comp.lang.ada Path: supernews.google.com!sn-xit-03!supernews.com!freenix!fr.usenet-edu.net!usenet-edu.net!fr.clara.net!heighliner.fr.clara.net!newsfeed.online.be!ams.uu.net!nyc.uu.net!world!bobduff From: Robert A Duff Subject: Re: Static typing (Was Re: Better support for garbage collection) Sender: bobduff@world.std.com (Robert A Duff) Message-ID: Date: Fri, 30 Mar 2001 21:29:58 GMT References: <98m938$2iod0$1@ID-25716.news.dfncis.de><98pgs1$32up7$1@ID-25716.news.dfncis.de><98umc6$39coj$1@ID-25716.news.dfncis.de><4mzw6.414$OQ6.73321643@newssvr16.news.prodigy.com> Organization: The World Public Access UNIX, Brookline, MA X-Newsreader: Gnus v5.3/Emacs 19.34 Xref: supernews.google.com comp.lang.ada:6277 Date: 2001-03-30T21:29:58+00:00 List-Id: "Ken Garlington" writes: > OK, that's at least internally consistent. However, the number of > ambiguities now is significantly expanded. For example: > > J : constant := 1; -- legitimate named number, or did I mean to type > > J : constant Character := 1; Named numbers are a kludge. I would eliminate them. There are better ways to achieve what named numbers can do. By the way, note that all this talk about changing the rules for literals, and eliminating named numbers is *not* meant as a serious proposal for Ada -- I'm playing around with language design ideas. Obviously, many of these ideas are incompatible with Ada. > J: constant String := a; -- is this a literal "a", or a reference to > something that I forgot to import? Both are possible... The a is an identifier, not a literal, and I don't propose to change that. > I'm not sure I want a language that has a design goal of catching faults to > be loosened in this regard. (I'm not sure I want it to be *tightened* either > in this regard, because I am still human, after all. :) My proposal does not "loosen" -- in fact (other than the minor ".0" thing), my proposal makes more programs illegal -- it tightens. - Bob