comp.lang.ada
 help / color / mirror / Atom feed
From: Philip Anderson <phil.anderson@amsjv.com>
Subject: Re: Ada Idioms Progress Preview
Date: Tue, 07 Aug 2001 14:26:16 +0100
Date: 2001-08-07T14:26:16+01:00	[thread overview]
Message-ID: <3B6FEC78.AE8A1875@amsjv.com> (raw)
In-Reply-To: 4V+as+yNIsOy@eisner.encompasserve.org

Larry Kilgallen wrote:
> 
> In article <SCIb7.37009$Kd7.22894159@news1.rdc1.sfba.home.com>, 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



  reply	other threads:[~2001-08-07 13:26 UTC|newest]

Thread overview: 41+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-08-03  4:16 Ada Idioms Progress Preview James Rogers
2001-08-03 19:45 ` Robert Dewar
2001-08-03 22:02   ` James Rogers
2001-08-06 22:33   ` Stanley R. Allen
2001-08-07  2:45     ` tmoran
2001-08-07 12:15       ` Larry Kilgallen
2001-08-07 13:26         ` Philip Anderson [this message]
2001-08-08  2:23         ` Robert Dewar
2001-08-08  5:58           ` Ehud Lamm
2001-08-08  2:19       ` Robert Dewar
2001-08-08 15:13         ` Ted Dennison
2001-08-08 18:03           ` tmoran
2001-08-09 20:36           ` Florian Weimer
2001-08-10 21:02         ` Jay Nabonne
2001-08-10 21:51           ` Larry Kilgallen
2001-08-13 14:19             ` Ted Dennison
2001-08-13 14:05           ` Ted Dennison
2001-08-13 14:19             ` Marin David Condic
2001-08-13 15:47             ` Ole-Hjalmar Kristensen
2001-08-13 16:22               ` Marin David Condic
2001-08-13 18:48               ` Larry Kilgallen
2001-08-14  7:05                 ` Ole-Hjalmar Kristensen
2001-08-13 20:20               ` James Rogers
2001-08-14  1:09                 ` Warren W. Gay VE3WWG
2001-08-14  6:15                   ` James Rogers
2001-08-14 14:03                     ` Warren W. Gay VE3WWG
2001-08-21  5:54                   ` C strings, was " David Thompson
2001-08-16 18:42                 ` Jay Nabonne
2001-08-17  1:25                   ` Robert Dewar
2001-08-13 21:47               ` Ted Dennison
2001-08-14  7:37                 ` Ole-Hjalmar Kristensen
2001-08-14 14:59                   ` Ted Dennison
2001-08-14 13:22                 ` Marin David Condic
2001-08-14 15:12                   ` Ted Dennison
2001-08-14 15:33                     ` Marin David Condic
2001-08-14  8:49               ` Lutz Donnerhacke
2001-08-14  9:38                 ` Ole-Hjalmar Kristensen
2001-08-14  9:54                   ` Lutz Donnerhacke
2001-08-14 14:51                     ` James Rogers
2001-08-14 16:44                   ` Darren New
2001-08-14  1:39             ` Slicing ( Ada Idioms Progress Preview ) Warren W. Gay VE3WWG
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox