comp.lang.ada
 help / color / mirror / Atom feed
From: Richard Riehle <richard@adaworks.com>
Subject: Re: Who said strong typing is a benefit?
Date: Sat, 12 Oct 2002 20:24:17 -0700
Date: 2002-10-13T03:18:34+00:00	[thread overview]
Message-ID: <3DA8E761.E9179EB0@adaworks.com> (raw)
In-Reply-To: 8db3d6c8.0210121718.25cf55e4@posting.google.com

steve_H wrote:

> since many Ada programmers mention as one of Ada benefits is its
> strong typing, I thought some here might find the following
> 'interesting' to read.
>
>
> "MATLAB Type Handling
> An important benefit of MATLAB is that users do not have
> to declare variables to be of certain data types,

    [ snipped some of the original text ]

Although Ada is designed to be type-safe, this is not a problem
for anyone who has no need of type-safety.   It is so easy to
circumvent type-safety, if you really want to do that.   We start
with a default of type-safe and simply relax that default as
much as we wish.

More important, it is rare for anyone to have difficulties with
Ada's type model.   Any practical programmer understands
the notion of type and can write code accordingly.  So what
is the problem, then?

More programmers have trouble with the Ada visibility rules
than any other single aspect of the language.   The type model
supports the visibility rules.   With this observation, I include
the accessibility rules, which are simply a variation on
visibility.  In my experience, once programmers understand
the visibility rules and learn to use them to their advantage,
instead of fighting them at every turn, they become comfortable
with Ada and begin to enjoy using it.   The visibility rules
are a benefit of the language design, not a curse, but it is
hard to see that in the early stages of using the language.

Richard Riehle







  parent reply	other threads:[~2002-10-13  3:24 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-10-13  1:18 Who said strong typing is a benefit? steve_H
2002-10-13  2:53 ` Jim Rogers
2002-10-13 18:27   ` Jeffrey Carter
2002-10-13  3:24 ` Richard Riehle [this message]
2002-10-13  7:10 ` tmoran
2002-10-13 13:00   ` Jim Rogers
2002-10-13 13:30     ` Florian Weimer
2002-10-13 17:28       ` Michael Bode
2002-10-13 22:07         ` Florian Weimer
2002-10-13 19:53       ` steve_H
2002-10-13 19:31     ` steve_H
2002-10-13 15:33   ` steve_H
2002-10-13 17:14 ` Larry Kilgallen
2002-10-14  1:21 ` Dmitry A.Kazakov
2002-10-13 19:42   ` steve_H
replies disabled

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