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=unavailable autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail From: "Jeffrey R. Carter" Newsgroups: comp.lang.ada Subject: Re: Ada case-statement Date: Thu, 15 Mar 2018 22:12:23 +0100 Organization: Also freenews.netfront.net; news.tornevall.net; news.eternal-september.org Message-ID: References: <365d65ea-5f4b-4b6a-be9b-1bba146394ab@googlegroups.com> <30fbf68e-b002-468d-9a8d-71cb457b0d03@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Thu, 15 Mar 2018 21:12:23 -0000 (UTC) Injection-Info: reader02.eternal-september.org; posting-host="83d7a2cd2a28c7c95d989498862f21c7"; logging-data="17803"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+tZKZFdcN43Q9M/3O35+7kf5SFDbbBhRQ=" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 In-Reply-To: <30fbf68e-b002-468d-9a8d-71cb457b0d03@googlegroups.com> Content-Language: en-US Cancel-Lock: sha1:H/3pBnr81HpFP+OKRX+yfP+MP0I= Xref: reader02.eternal-september.org comp.lang.ada:51008 Date: 2018-03-15T22:12:23+01:00 List-Id: On 03/15/2018 07:41 PM, Shark8 wrote: > On Thursday, March 15, 2018 at 11:01:28 AM UTC-6, Dmitry A. Kazakov wrote: > > Given the DOD origins of Ada, I'm rather surprised the native date format isn't "DDMMMYY" / "DD-MMM-YY[YY]" -- proper "military date" which is unambiguous (something you need for serialization/de-serialization) -- and perhaps have an optional "ISO 8601" child-package of Calendar w/ the 95 revision. Ada 83 didn't have a "date format". String representations of dates were left up to the programmer. What it did have was Calendar.Time, which could be created from Year, Month, and Day numbers, each clearly labeled with what it represented, or queried/decomposed to obtain Year, Month, and Day numbers, again clearly labeled. For the early 1980s, it was somewhat prescient in avoiding 2-digit years, something I recall liking when I first encountered the language. -- Jeff Carter "Beyond 100,000 lines of code you should probably be coding in Ada." P. J. Plauger 26