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,LOTS_OF_MONEY autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII X-Google-Thread: 103376,45b47ecb995e7a3 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-08-07 06:28:20 PST Message-ID: <3B6FEC78.AE8A1875@amsjv.com> Date: Tue, 07 Aug 2001 14:26:16 +0100 From: Philip Anderson Organization: Alenia Marconi Systems ISD X-Mailer: Mozilla 4.7 [en] (WinNT; I) X-Accept-Language: en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Ada Idioms Progress Preview References: <3B6F1B2F.4FC3C833@gsde.hou.us.ray.com> <4V+as+yNIsOy@eisner.encompasserve.org> Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit NNTP-Posting-Host: cwmwkn0612.cwmbran.gecm.com X-Trace: 7 Aug 2001 14:16:32 GMT, cwmwkn0612.cwmbran.gecm.com Path: archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!skynet.be!dispose.news.demon.net!demon!btnet-peer0!btnet-feed5!btnet!newreader.ukcore.bt.net!pull.gecm.com!cwmwkn0612.cwmbran.gecm.com Xref: archiver1.google.com comp.lang.ada:11494 Date: 2001-08-07T14:26:16+01:00 List-Id: Larry Kilgallen wrote: > > In article , tmoran@acm.org writes: > > Perhaps Ada should not have idioms. An idiom makes no sense to someone > > who doesn't know it, eg "He lost his marbles". Unless it's so well > > known that you can guarantee that a maintenance programmer will > > recognize it, you shouldn't be, and shouldn't have to be, using it. > > MY_VAR : MY_TYPE := MY_FUNC(37); > > is an idiom. It is strange to someone just learning Ada, but familiar > to somewhat who knows Ada. That is analogous to idioms in English. No, that's just syntax, analogous to English syntax. Idiom: "an expression characteristic of a particular language not logically or grammatically explicable". Natural language idioms can be baffling for near-fluent learners as well as beginners, while being perfectly familiar to native speakers. And American idioms sometimes confuse the British and vice versa. That's not what we want for Ada, which was tmoran's point. But propagating easily-understood example code is "a different kettle of fish", in line with Ada's goal of being easier to read than to write. If there are a number of ways of achieving something, the easiest to read is probably the best, but that may not come out of trial and error. My_String : string := Get_Line; to read a string of unkown length is an idiom. -- hwyl/cheers, Philip Anderson Alenia Marconi Systems Cwmbr�n, Cymru/Wales