comp.lang.ada
 help / color / mirror / Atom feed
From: "Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de>
Subject: Re: Other Ada Standards (was Re: SIGada Conference)
Date: Sun, 28 Dec 2003 20:54:03 +0100
Date: 2003-12-28T20:54:03+01:00	[thread overview]
Message-ID: <bsnc0v$ek36c$1@ID-77047.news.uni-berlin.de> (raw)
In-Reply-To: bsmnjc$eqf$1@a1-hrz.uni-duisburg.de

Georg Bauhaus wrote:

> Dmitry A. Kazakov <mailbox@dmitry-kazakov.de> wrote:
> : Or with getting rid of with clauses at all, as Robert Duff mentioned in
> : passing! I never liked them. How about that?
> 
> That is what has been driving me up the wall when debugging
> Java classes. The author liked a particular feature of the
> IDE that popped up a menu of methods applicable to an object
> if either the import list names the package, or if the fully
> qualified named was there,
> (type top.mid.Something.<hit Ctl-<space>>.)
> Result: occurences of top.mid.Somthing.meth(...) everywhere
> and _not_ top.mid.Something in the import list.
> 
> So, by just looking at the import list, nothing was known
> about the dependences, because they were sprinkeled all over the
> sources, and therfore implicit.

You are arguing against use-haters. I am not one. I am a with-hater! (:-))

> Can a good IDE help in this case? Not much I guess. To what extent can
> it help when the source code cannot be compiled? I imagine that an
> IDE might need error correction at an extreme AI guessing level so to
> speak, in order to be helpful.

True, the IDE argument is ultimately wrong. Wich also means that - why
should I worry about with A.B.C.D; use A.B.C.D;, I have a good editor! - is
also wrong. One can automate only typing, not reading.

> Should a programming language depend on an IDE?

Never

> There have been some extensions to Oberon-2, one being related to
> concurrency, http://bluebottle.ethz.ch/languagereport/node3.html
> AFAICS, if a maintainer wants to find the "concurrency structure"
> of a an Active Oberon program, he/she will have to make a search
> for some keywords embedded in type definitions, and prodecure
> definitions.  (That is, it looks more like
> 
>     type T is
>       program text
>       program text
>       protected
>       program text
>     end T;
> 
> rather than
> 
>     protected type T is
>       program text
>       program text
>       program text
>     end T;
> 
> The first variant might look quite flexible as you only have to add
> some keyword like {ACTIVE} or {EXCLUSIVE} (for protected etc) after
> some BEGIN.  To a reader this might look like you can add concurrency
> ad hoc.  Or you might just switch some cuncurrency feature off for
> a procedure by removing a keyword.  But then this is ad hoc design,
> not easy to spot, and somehow feels not well structured, as it
> buries the concurrency indicators in type definitions or procedure
> implementations.  It might allow some clever tricks syntaxwise.
> But do you want this kind of cleverness attitude expressed in
> Ada programs?

It is a difficult question, active objects, I mean. I would definitely like
task types being like any others, and to have multiple inheritance too.
Provided that, one could easily mix-in "activeness" to a type, for good and
for bad.

> Omitting with clauses might to have similar effects on design, I think.

I find "with"-ing boring. I cannot remember any case they helped me to solve
any problem. Rather, the opposite, it is sometimes difficult to with
everything you need. Moreover careless designers tend to "with" everything
they can. I am suspicious, whether others are doing it too, but just
removing extra with's afterwards! (:-))

The only use of "with" I found, was debugging. Without a good debugger I
added "with Text_IO;", and used Text_IO.Put_Line. When ready, I removed
"with Text_IO;", and could find all appearances of debug printing by
compiler error messages.

-- 
Regards,
Dmitry A. Kazakov
www.dmitry-kazakov.de



  parent reply	other threads:[~2003-12-28 19:54 UTC|newest]

Thread overview: 80+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <468D78E4EE5C6A4093A4C00F29DF513D04B82B08@VS2.hdi.tvcabo>
2003-12-17  1:01 ` SIGada Conference Stephen Leake
2003-12-17  3:19   ` Robert I. Eachus
2003-12-18  6:55     ` Robert C. Leif
2003-12-18 15:23       ` Other Ada Standards (was Re: SIGada Conference) Robert I. Eachus
2003-12-18 18:27         ` Robert A Duff
2003-12-19  7:38           ` Robert I. Eachus
2003-12-19 23:10             ` Robert A Duff
2003-12-19  8:51           ` Russ
2003-12-19 17:03             ` tmoran
2003-12-20  0:43               ` Russ
2003-12-19 23:18             ` Robert A Duff
2003-12-20  7:05               ` Russ
2003-12-20  9:06                 ` Nick Roberts
2003-12-20 17:43                   ` Robert I. Eachus
2003-12-22  0:07                     ` Russ
     [not found]                       ` <bfcib1-r43.ln1@beastie.ix.netcom.com>
2003-12-22 17:10                         ` Robert I. Eachus
2003-12-22 18:25                           ` Larry Hazel
2003-12-23 16:55                             ` Chad R. Meiners
2003-12-24 13:17                               ` Marin David Condic
2003-12-24 14:57                                 ` Robert A Duff
2003-12-25  3:26                                   ` Marin David Condic
2004-01-03 19:03                                   ` Pascal Obry
2003-12-24 20:16                                 ` Russ
2003-12-24 21:41                                   ` Robert A Duff
2003-12-25  2:51                                     ` Robert I. Eachus
2003-12-25  3:42                                     ` Marin David Condic
2003-12-25  6:35                                       ` Russ
2003-12-25 12:34                                         ` Georg Bauhaus
2003-12-25 15:38                                           ` Marin David Condic
2003-12-26 20:09                                             ` Russ
2003-12-27  3:39                                               ` Georg Bauhaus
2003-12-27  7:40                                                 ` Russ
2003-12-27 11:18                                                   ` Georg Bauhaus
2003-12-28  5:56                                                     ` Russ
2003-12-27 11:24                                                 ` Dmitry A. Kazakov
2003-12-27 12:21                                                   ` Georg Bauhaus
2003-12-28 11:44                                                     ` Dmitry A. Kazakov
2003-12-28 13:59                                                       ` Georg Bauhaus
2003-12-28 19:43                                                         ` Robert A Duff
2003-12-28 20:47                                                           ` Dmitry A. Kazakov
2003-12-28 19:54                                                         ` Dmitry A. Kazakov [this message]
2003-12-29  6:07                                                           ` Georg Bauhaus
2003-12-29 11:28                                                             ` Dmitry A. Kazakov
2003-12-29 13:36                                                               ` Chad R. Meiners
2003-12-29  6:25                                                           ` Georg Bauhaus
2003-12-27 18:43                                                   ` Robert A Duff
2003-12-28 11:45                                                     ` Dmitry A. Kazakov
2003-12-28 19:59                                                       ` Robert A Duff
2003-12-30 18:03                                                     ` Peter Richtmyer
2003-12-30 23:02                                                       ` Alexandre E. Kopilovitch
2003-12-27 21:56                                                   ` Russ
2003-12-27 22:52                                                     ` Robert I. Eachus
2003-12-28 11:44                                                     ` Dmitry A. Kazakov
2003-12-28 18:14                                                       ` Robert I. Eachus
2003-12-28 19:55                                                         ` Dmitry A. Kazakov
2003-12-29  2:08                                                           ` Robert I. Eachus
2003-12-29 11:29                                                             ` Dmitry A. Kazakov
2003-12-29 13:44                                                               ` Chad R. Meiners
2003-12-29 17:07                                                                 ` Robert I. Eachus
2003-12-28 23:17                                                       ` Russ
2003-12-28 23:45                                                         ` Wes Groleau
2003-12-27 14:09                                                 ` Marin David Condic
2003-12-27 19:25                                                   ` Robert I. Eachus
2003-12-28  1:47                                                   ` Russ
2003-12-23 10:49                           ` come from joke (was " Peter Hermann
2003-12-23 12:19                             ` come from joke Samuel Tardieu
2003-12-23 17:00                               ` Arthur Evans Jr
2003-12-23 22:03                               ` Wes Groleau
2003-12-25  0:37                                 ` Stephane Richard
2003-12-27  1:00                                   ` John Woodruff
2003-12-24 18:48                               ` Simon Wright
2003-12-23 12:39                             ` come from joke (was Re: Other Ada Standards (was Re: SIGada Conference) Vinzent 'Gadget' Hoefler
2003-12-23 15:50                             ` Georg Bauhaus
2003-12-23 16:03                               ` Vinzent 'Gadget' Hoefler
2003-12-23 16:12                               ` Peter Hermann
2003-12-22 18:29                       ` Warren W. Gay VE3WWG
2003-12-20 19:44                   ` tmoran
2003-12-22 18:22                   ` Warren W. Gay VE3WWG
2003-12-20  0:39             ` Russ
2003-12-20  1:44               ` unknown
replies disabled

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