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,4da4573d129f824a X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2004-01-08 18:58:21 PST Path: archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.mathworks.com!nntp.TheWorld.com!not-for-mail From: Robert A Duff Newsgroups: comp.lang.ada Subject: Re: style Q: type .. is new String; Date: 08 Jan 2004 21:58:20 -0500 Organization: The World Public Access UNIX, Brookline, MA Message-ID: References: NNTP-Posting-Host: pip1-5.std.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: pcls4.std.com 1073617100 12704 192.74.137.185 (9 Jan 2004 02:58:20 GMT) X-Complaints-To: abuse@TheWorld.com NNTP-Posting-Date: Fri, 9 Jan 2004 02:58:20 +0000 (UTC) User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 Xref: archiver1.google.com comp.lang.ada:4237 Date: 2004-01-08T21:58:20-05:00 List-Id: tmoran@acm.org writes: > Though I create new types regularly for numeric variables, Me, too. >...I've only > rarely used other than the standard String type. That saves doing type > conversions, but it would be nice to have strong type checking help me > detect errors. Do other folks use new String types a lot and find it > works out well? Only rarely. For example, I have a message template type, which is a string, but wants some stuff "filled in" at run time. Otherwise, a String is a String. Integers, on the other hand, "measure" different things -- it's useful to have the index of this-array be a different type from the index of that-array. - Bob