comp.lang.ada
 help / color / mirror / Atom feed
* Re: Subtle Bugs, kudos Ada (was How Ada ...Red Code ...)
@ 2001-08-23 10:29 Gautier Write-only-address
  0 siblings, 0 replies; 46+ messages in thread
From: Gautier Write-only-address @ 2001-08-23 10:29 UTC (permalink / raw)
  To: comp.lang.ada

> > From one of the first books about C by K&R:
> > "C was designed on the assumption that the programmer is someone 
>sensible who knows what he's doing"
> >
> > From the introduction of the Ada Reference Manual:
> > "Ada was designed with the concern of programming as a human activity"

> > The fact that these starting hypothesis lead to two completely different 
>philosophies
> > of languages is left as a subject for meditation...

><troll level="quite high>
>
>The conclusion is obvious. C was designed for professionals; Ada for
>amateurs.
>
></troll>
>
><nasty g>

Essay of conclusion on conslusion: trolls are amateur, professionals
hope not to be human.

Next one ?


_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp




^ permalink raw reply	[flat|nested] 46+ messages in thread
* How to make Ada a dominant language
@ 2001-07-30  7:08 Russ
  2001-07-30  8:36 ` Preben Randhol
  0 siblings, 1 reply; 46+ messages in thread
From: Russ @ 2001-07-30  7:08 UTC (permalink / raw)


The Ada programming language is based on an excellent fundamental
design, but it is much less popular than it could be because it has an
awkward, "klunky" syntax. I propose to clean up the syntax by
borrowing from Python. Python is very popular high level "scripting"
language with a reputation for promoting clean, clear code. The new
syntax could be translated into Ada95 syntax with a relatively simple
"preprocessor," so existing compilers could still be used, old code
would continue to work, and programmers could continue to use the old
syntax if they wish.

Here are the syntax changes I propose:

1. Eliminate the "end" keyword and make the indentation structure an
inherent part of the syntax, as in Python.

2. Eliminate the requirement for a semicolon after each executable
statement, but allow semicolons for combining multiple statements on a
line, as in Python.

3. Use "=" rather than ":=" for assignment, as in Python. (Use "=="
for equality testing if necessary to avoid confusion with assignment.)

4. Use "=" instead of "=>" for passing arguments by named association,
as in Python.

5. Reverse the backward declaration syntax. For example, use "integer:
count" instead of "count: integer", or use "integer in: count" instead
of "count: in integer".

6. Eliminate the "is" keyword.

7. Let "use" imply "with" so the tops of files need not be cluttered
with both "with" and "use" for the same package.

A flag on the first line of a source file (e.g., the string "Ada01"
anywhere within a comment) could be used to tell the compiler that the
file needs to be translated to Ada95 before compiling.

With these changes, I believe Ada would become much more popular and
could eventually become a dominant language. The resulting new
language could be called "Ada01," or something like that.

Honestly now, which of the following two statements is cleaner and
clearer?

    count: integer := 0;  -- old syntax

    integer: count = 0  -- new syntax

Russ Paielli
http://RussP.org



^ permalink raw reply	[flat|nested] 46+ messages in thread

end of thread, other threads:[~2001-08-29 18:19 UTC | newest]

Thread overview: 46+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-08-23 10:29 Subtle Bugs, kudos Ada (was How Ada ...Red Code ...) Gautier Write-only-address
  -- strict thread matches above, loose matches on Subject: below --
2001-07-30  7:08 How to make Ada a dominant language Russ
2001-07-30  8:36 ` Preben Randhol
2001-07-30 12:41   ` Russ Paielli
2001-07-31  8:29     ` Florian Weimer
2001-07-31 20:34       ` Keith Thompson
2001-07-31 21:29         ` The concept of := (was How to make Ada a dominant language) Warren W. Gay VE3WWG
2001-08-01  3:27           ` How Ada could have prevented the Red Code distributed denial of service attack raj
2001-08-12  7:41             ` Will
2001-08-22  6:17               ` Richard Riehle
2001-08-22  9:04                 ` Joachim Durchholz
2001-08-22 10:24                   ` Markus Mottl
2001-08-22 17:47                     ` Subtle Bugs, kudos Ada (was How Ada ...Red Code ...) Warren W. Gay VE3WWG
2001-08-22 18:55                       ` Ted Dennison
2001-08-22 20:25                         ` Warren W. Gay VE3WWG
2001-08-23  3:21                         ` David Starner
2001-08-22 20:34                       ` Kaz Kylheku
2001-08-22 21:57                         ` Dale Stanbrough
2001-08-23  1:56                         ` Joe Maun
2001-08-26  1:10                           ` Igor Tandetnik
2001-08-26  5:16                             ` pete
2001-08-26 15:02                               ` Igor Tandetnik
2001-08-27  1:52                                 ` Joe Maun
2001-08-27  3:13                                   ` Igor Tandetnik
2001-08-27  2:59                                 ` Kaz Kylheku
2001-08-26  9:13                           ` Florian Weimer
2001-08-27  1:53                             ` Joe Maun
2001-08-27 11:05                               ` Florian Weimer
2001-08-27 19:36                                 ` Joe Maun
2001-08-27 20:49                                   ` Florian Weimer
2001-08-28  3:34                                     ` Joe Maun
2001-08-28  4:50                                       ` Kaz Kylheku
2001-08-28 17:14                                         ` Joe Maun
2001-08-28 19:00                                           ` Kaz Kylheku
2001-08-28 19:13                                             ` Joe Maun
2001-08-28 20:47                                               ` Kaz Kylheku
2001-08-28 20:49                                               ` Kaz Kylheku
2001-08-28 23:18                                                 ` Joe Maun
2001-08-29  2:17                                                   ` Florian Weimer
2001-08-29  2:10                                                     ` Larry Kilgallen
2001-08-29  2:14                                               ` Florian Weimer
2001-08-29 17:31                                               ` B.Gaffney
2001-08-29 18:19                                                 ` Darren New
2001-08-23  3:17                         ` David Starner
2001-08-23  5:11                           ` Kaz Kylheku
2001-08-23  9:12                         ` Jean-Pierre Rosen
2001-08-23  9:42                           ` Richard Bos
2001-08-23 12:00                             ` James Rogers
2001-08-23 14:08                               ` Marin David Condic
2001-08-23 13:58                             ` Samuel T. Harris
2001-08-23 14:46                             ` Ted Dennison
2001-08-23 14:21                               ` Richard Bos
2001-08-23 15:15                             ` David Starner
2001-08-23 20:54                               ` CBFalconer
2001-08-23 17:02                             ` Richard Riehle
     [not found]                         ` <9m2ib <3B855750.466C59CF@yahoo.com>
2001-08-23 21:21                           ` Dan Cross
2001-08-24  0:40                             ` CBFalconer

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