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.5 required=5.0 tests=BAYES_00,MSGID_RANDY, PP_MIME_FAKE_ASCII_TEXT autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII X-Google-Thread: 103376,8077d2e20cde67b1 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2000-10-27 15:20:10 PST Path: supernews.google.com!sn-xit-02!sn-xit-03!supernews.com!hermes.visi.com!news-out.visi.com!nntp.flash.net!newsfeed.mathworks.com!news.maxwell.syr.edu!nntp2.deja.com!nnrp1.deja.com!not-for-mail From: Robert Dewar Newsgroups: comp.lang.ada Subject: Re: Modular types inside records Date: Fri, 27 Oct 2000 22:05:16 GMT Organization: Deja.com - Before you buy. Message-ID: <8tcu6o$djd$1@nnrp1.deja.com> References: <8FD47616EPablo@213.25.200.9> <8ss7fb$5c7$1@nnrp1.deja.com> <8FD4BD4F4Pablo@213.25.200.9> <8FD6C49EFPablo@213.25.200.9> NNTP-Posting-Host: 205.232.38.240 X-Article-Creation-Date: Fri Oct 27 22:05:16 2000 GMT X-Http-User-Agent: Mozilla/4.61 [en] (OS/2; I) X-Http-Proxy: 1.0 x63.deja.com:80 (Squid/1.1.22) for client 205.232.38.240 X-MyDeja-Info: XMYDJUIDrobert_dewar Xref: supernews.google.com comp.lang.ada:1601 Date: 2000-10-27T22:05:16+00:00 List-Id: In article <8FD6C49EFPablo@213.25.200.9>, niewiap@widzew.net (Pawe� Niewiadomski) wrote: > I don't like explicit programming too much, anyways. I guess I am too much > of a C++-type simplicity addict. It does NOT make things simple for the maintainer to hide things in non-obvious code. Yes, it may be simpler for you to type, especially if you are a slow typist :-) Since the wrap around is very crucial to the algorithm here, you will have to document that clearly if the code does not document it clearly. I agree with Bob, the explicit mod or if makes the code much clearer. Actually "the I don't like explicit programming" says a LOT! In a way I would say the whole design of Ada is to make code clear and explicit, so if indeed you prefer obscure code, c++ may indeed have the edge on this particular metric! P.S. For my taste, modular types with modulus other than a power of 2 should never have gone into the language. Historically this was partly an editing error. The designers were trying to incorporate recommendations from the URG, and they paid attention to a long design document that had been submitted to the URG with essentially the Ada 95 model of generalized modular types. What they missed is that the URG had voted N-1 (the 1 being the person submitting the idea) that this was overkill, and rejected the general proposal :-) But by the time this error was noticed, there was a constituency of general-modular-type fans, and there were other battles to be fought. Actually in retrospect the battle should have been fought for two reasons 1. There are some really horrible strange things, like the meaning of not on weird modular types. 2. Discussing and getting the details right on these weird things wasted time Sent via Deja.com http://www.deja.com/ Before you buy.