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.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,fcdd0f6139250dc5 X-Google-Attributes: gid103376,public From: dewar@merv.cs.nyu.edu (Robert Dewar) Subject: Re: Tagged Types and Generics Date: 1997/04/27 Message-ID: #1/1 X-Deja-AN: 237706646 References: <3.0.32.19970426224603.00702f6c@mail.4dcomm.com> Organization: New York University Newsgroups: comp.lang.ada Date: 1997-04-27T00:00:00+00:00 List-Id: Robert Leif said <> I disagree, this is using a shotgun to kill an ant. Simple derivation is perfectly fine for dealing with different kinds of currency. Sure you can tag with the type, but about all that buys you is a display routine that puts FF or UKL in as appropriate, and that's not worth the heaviness of using tagged types in this connection. I prefer to keep thinks as light and simple as possible (I must say that in general it surprises me how many Ada programmers have a great love of complex abstraction mechanisms, and seem to delight in trying to use all kinds of complex features all over the place -- I am not talking of Robert's suggestoin specifically here, but just reacting to some of the code we see submitted to us -- I guess people must find the GNAT code very simple minded -- one of my students said it was "painfully easy to read" :-) :-)