comp.lang.ada
 help / color / mirror / Atom feed
From: Andrew Hately <hat@cfmu.eurocontrol.be>
Subject: Re: Top 10 Language Constructs (Ada)
Date: 2000/07/14
Date: 2000-07-14T00:00:00+00:00	[thread overview]
Message-ID: <396EEF14.E98C9C56@cfmu.eurocontrol.be> (raw)
In-Reply-To: 8kmjja$l5h$1@pollux.ip-plus.net

Bruno Gustavs wrote:
> 
> What do you think are the top ten language constructs in Ada?

Previously I used c and c++. I have also worked in fortran and basic
(many) as well as tinkering with bcpl and various assembly languages.
For me:

1 packages
 - separate spec and body
   (I laugh at c++ with its puny class. 
    "Hey, object, I can see your inner workings")
 - decent name space management
 - its just the natural way to do it


2 ability to declare procedures other than at the global level
 (vs c where everything is global or global with a hidden name)


3 enumerated types and case statements with no "when others"


4 types
 - also arrays with known size
   (not just pointers)
 - also run time checking


5 agregate assignement


6 named parameters in procedure/function calls and 
  named values in agregates


7 the compiler resolves calling, not the linker
 (bonus: overloading by function return type)


8 generics
 (vs c macros, especially when debugging)


9 the compiler can work out what to compile and in what order


10 a syntax in which common typing errors do not yield other, 
   unexpected but syntactically valid programs



Andrew




  reply	other threads:[~2000-07-14  0:00 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-07-14  0:00 Top 10 Language Constructs (Ada) Bruno Gustavs
2000-07-14  0:00 ` Andrew Hately [this message]
2000-07-14  0:00 ` David Kristola
2000-07-14  0:00 ` Samuel T. Harris
2000-07-15  0:00   ` Simon Wright
2000-07-18  0:00     ` Nick Keighley
2000-07-15  0:00 ` Marc A. Criley
2000-07-16  0:00   ` David Botton
2000-07-18  0:00   ` David Kristola
2000-07-18  0:00     ` Bill Brennan
2000-07-18  0:00       ` Dr. Joachim Schr�er
2000-07-19  0:00         ` Bill Brennan
2000-07-18  0:00           ` Scott Ingram`
2000-07-21  0:00         ` Keith Thompson
2000-07-25  0:00           ` Dr. Joachim Schr�er
2000-07-25  0:00             ` Florian Weimer
2000-07-26  0:00             ` David Kristola
2000-07-25  0:00           ` Keith Thompson
2000-07-19  0:00       ` David Kristola
2000-07-18  0:00     ` Scott Ingram`
2000-07-18  0:00     ` Stefan Skoglund
2000-07-24  0:00   ` Richard Riehle
2000-07-26  0:00     ` The Ada type model (was Re: Top 10 Language Constructs (Ada)) Marc A. Criley
2000-07-15  0:00 ` Top 10 Language Constructs (Ada) David Botton
replies disabled

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