comp.lang.ada
 help / color / mirror / Atom feed
From: dewar@cs.nyu.edu (Robert Dewar)
Subject: Re: Variable Args, Ada
Date: 18 Oct 1994 12:44:37 -0400
Date: 1994-10-18T12:44:37-04:00	[thread overview]
Message-ID: <380u1l$hmc@schonberg.cs.nyu.edu> (raw)
In-Reply-To: 1994Oct15.215733.12384@atc1.atc.com

"Why should any modern high-level language allow a programmer to code
something that will be "unsafe" or "dangerous".  Weren't the terse
grammar and compiler designed (in part) to prevent that?"

Any generally usable programming language that intends to be useful for
systems programming (e.g. writing device drivers, or other low level
stuff) needs some access to "unsafe" stuff.

Similarly there are times when even at a relatively high level of
abstraction it is reasonable to break the type security (consider
for example the problem of efficient hashing of floating-point
values).

The point is that the language should be designed so that such unsafe
usage is well advertised and can be easily controlled. That is why in
Ada you need to write a lot of "junk", including a notice at the top of
your file ("with unchecked conversion") to do what in some languages
could be done in a very straightforward way, TOO straightforward and
too easily abused.




      reply	other threads:[~1994-10-18 16:44 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1994-10-15 21:57 Variable Args, Ada Paul Santa Maria
1994-10-18 16:44 ` Robert Dewar [this message]
replies disabled

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