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!.POSTED!not-for-mail From: "J-P. Rosen" Newsgroups: comp.lang.ada Subject: Re: Beginning Ada Programming, by Andrew T. Shvets (2020) Date: Tue, 3 Dec 2019 18:38:18 +0100 Organization: Adalog Message-ID: References: <87muca3vgd.fsf@nightsong.com> <57d49047-0a61-4d13-8822-d004732a3acc@googlegroups.com> <3b1b248b-43d0-4762-b1f5-1c5460d24c8b@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Date: Tue, 3 Dec 2019 17:38:17 -0000 (UTC) Injection-Info: reader02.eternal-september.org; posting-host="86af572513010a01821aec455f7aca5c"; logging-data="29822"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19sZoC/vyOMkOKTpc4LsJlx" User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.9.1 Cancel-Lock: sha1:MCMCpkE0jCrLfjfZf095rf5rmXA= In-Reply-To: Content-Language: fr Openpgp: preference=signencrypt Xref: reader01.eternal-september.org comp.lang.ada:57643 Date: 2019-12-03T18:38:18+01:00 List-Id: Le 03/12/2019 à 15:39, Simon Wright a écrit : > I think what's difficult to grasp is the need for such a type. Nothing > wrong with > > float len; > > or, for the more enlightened, > > typedef float length; > ... > length len; That's exactly why it should be stressed right from the start that in Ada, you differentiate between machine types and abstract types that model the problem domain. That's the difference between teaching the syntax and teaching the way to use Ada. -- J-P. Rosen Adalog 2 rue du Docteur Lombard, 92441 Issy-les-Moulineaux CEDEX Tel: +33 1 45 29 21 52, Fax: +33 1 45 29 25 00 http://www.adalog.fr