comp.lang.ada
 help / color / mirror / Atom feed
From: "Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de>
Subject: Re: [OT] interesting reason why a language is considered good
Date: Tue, 17 Apr 2012 09:34:49 +0200
Date: 2012-04-17T09:34:49+02:00	[thread overview]
Message-ID: <hu9f8kmizrtl.156hwzs4vzy1p$.dlg@40tude.net> (raw)
In-Reply-To: 4f8c93a0$0$6638$9b4e6d93@newsspool2.arcor-online.net

On Mon, 16 Apr 2012 23:48:15 +0200, Georg Bauhaus wrote:

> On 16.04.12 20:00, Dmitry A. Kazakov wrote:
> 
>> You asked for examples of programs allegedly suffering from generality of
>> the word "when", here is one:
> 
> Actually I asked for programs that profit from generality of words
> like "when" used as identifiers.

If you want to go that way, then I will ask you to show such programs for
"why", "whose" etc. It always works (does not, actually) in both ways.

>>     case Alignment is
>>         when Left =>  ...;
>>         when Right =>  ...;
>>         when Middle =>  ...;
>>     end case;
> 
> What's the pain?

Yes, what pain? Why this program didn't suffered from using the dreadful
"when"?

> I have tried to explain that generic identifiers do not inform about
> specific things.

And I answered that this does not make them *reserved*.

>>> Simon Wright has recently shown a nice way how to mend the situation
>>> with X and Y for surface orientation, using Ada 2012 (substituting
>>> Northings and Eastings in the profile, IIRC).
>>
>> I wonder what Australians would say about that.
> 
> You don't mean that Australian drivers (or pilots) do not know how
> to head North?

I mean that "North" is probably not the best replacement for "vertical."
And the latter is probably not same as "Y." It is sometimes "Z." The choice
of names is always a difficult one, which also depends on the context of
use, as Randy has pointed out.

>> See. In other words, there are other reasons why "when" is reserved.
>> Exactly my point.
> 
> Not the point in question, I think.  The point in question is what happens
> when even words like "when", i.e. even those that happen to be reserved
> now, do loose that special status.

See, it has nothing to do with the meaning of a word. The only reason why
"when" should possibly be reserved is on syntactic grounds. That should be
considered from case to case. Specifically "when" could be allowed, I
guess.

>>>> Statistically irrelevant.
>>>
>>> I know I am not statistically relevant. Yet, for actual statistics,
>>> if you see how programs are written in the low budget industry
>>> that might change your mind.
>>
>> You mean that low budget industry has no access to an editor capable to
>> colourise Ada source code? Come on, gedit, AdaGide, GPS are free!
> 
> A graphical terminal on site? Wow!  I am used to SSH.

http://sourceforge.net/projects/xming  +  putty

-- 
Regards,
Dmitry A. Kazakov
http://www.dmitry-kazakov.de



  parent reply	other threads:[~2012-04-17  7:35 UTC|newest]

Thread overview: 48+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-04-15 10:27 [OT] interesting reason why a language is considered good Nasser M. Abbasi
2012-04-15 11:57 ` J-P. Rosen
2012-04-16 10:37   ` Peter C. Chapin
2012-04-15 12:27 ` Dmitry A. Kazakov
2012-04-17  6:59   ` tonyg
2012-04-17  7:43     ` Dmitry A. Kazakov
2012-04-15 14:05 ` Bill Findlay
2012-04-15 14:21 ` Pascal Obry
2012-04-15 14:54   ` Simon Wright
2012-04-15 15:34     ` Pascal Obry
2012-04-17  5:42       ` Brad Moore
2012-04-17 16:11         ` Simon Wright
2012-04-17 16:33           ` Robert A Duff
2012-04-17 19:34             ` Simon Wright
2012-04-17 21:42               ` Robert A Duff
2012-04-17 22:24                 ` Randy Brukardt
2012-04-18  7:00                   ` stefan-lucks
2012-04-17 21:17             ` Jeffrey Carter
2012-04-15 23:53     ` Brian Drummond
2012-04-16 10:43 ` Marius Amado-Alves
2012-04-16 11:48   ` Georg Bauhaus
2012-04-16 13:06     ` Dmitry A. Kazakov
2012-04-16 15:01       ` Georg Bauhaus
2012-04-16 15:31         ` Dmitry A. Kazakov
2012-04-16 17:11           ` Georg Bauhaus
2012-04-16 17:19             ` Georg Bauhaus
2012-04-16 18:00             ` Dmitry A. Kazakov
2012-04-16 21:48               ` Georg Bauhaus
2012-04-17  3:43                 ` Randy Brukardt
2012-04-17  4:43                   ` Bill Findlay
2012-04-17  7:46                   ` Georg Bauhaus
2012-04-17 22:32                     ` Randy Brukardt
2012-04-18  7:10                       ` stefan-lucks
2012-04-18 23:48                         ` Randy Brukardt
2012-04-19 14:22                           ` Shark8
2012-04-17 15:48                   ` Simon Wright
2012-04-17 16:15                     ` Dmitry A. Kazakov
2012-04-17 19:33                       ` Simon Wright
2012-04-17  7:34                 ` Dmitry A. Kazakov [this message]
2012-04-17 16:01                   ` Simon Wright
2012-04-17 17:42                   ` Georg Bauhaus
2012-04-17 19:17                     ` Dmitry A. Kazakov
2012-04-17  3:24           ` Randy Brukardt
2012-04-17  3:33           ` Randy Brukardt
2012-04-16 19:55   ` sbelmont700
2012-04-17  0:48   ` Peter C. Chapin
2012-04-17 21:59 ` anon
2012-05-13  4:14   ` David Thompson
replies disabled

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