comp.lang.ada
 help / color / mirror / Atom feed
From: "Jay Nabonne" <jay@rightagain.com>
Subject: Re: Ada Idioms Progress Preview
Date: Fri, 10 Aug 2001 14:02:54 -0700
Date: 2001-08-10T14:02:54-07:00	[thread overview]
Message-ID: <3_Xc7.45$NM5.84779@news.pacbell.net> (raw)
In-Reply-To: 5ee5b646.0108071819.6e84e33d@posting.google.com

"Robert Dewar" <dewar@gnat.com> wrote in message
news:5ee5b646.0108071819.6e84e33d@posting.google.com...
> tmoran@acm.org wrote in message
news:<SCIb7.37009$Kd7.22894159@news1.rdc1.sfba.home.com>...
> > Perhaps Ada should not have idioms.
>
> I understand Tom's point here, and I would rephrase it as a requirement
> that Ada idiom's be obvious once seen to someone who knows Ada. That's
> true for example of Stanley's Boolean'Pos idiom (which is indeed a
> useful one to know).
>
> So when you read one of these idioms, the reaction should be one of
>
> a) ah, yes, I know that, and immediately know what it means
>
> b) ah, interesting way of doing things, yes, I understand it and
> will remember this in future.
>
> It should not be:
>
> c) Gadzooks! What on earth does that mean, let me reach for the LRM.
> Ah, yes, finally figured it out -- to clever for me!
>

(This isn't really a response to Robert, but my news reader lost the top of
this thread, and this was the highest root I could attach a message to. :)

As a C/C++ programmer who is looking with interest at Ada (after a rather
entertaining discussion about Code Red in comp.lang.c++), what would be most
useful for me - and it's what I thought of when I saw the word idiom - is
something that says "in order to do <blah>, given that there's more than one
way to do it within the Ada language, here's how you write code that looks
like an Ada programmer wrote it and doesn't look like a
C++-programmer-writing-Ada wrote it.".

I'm interested in how to "think in Ada"...

Jay-





  parent reply	other threads:[~2001-08-10 21:02 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
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 [this message]
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