From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-0.8 required=5.0 tests=BAYES_00,INVALID_DATE autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,be79a0a925617e0 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 1994-10-18 15:25:18 PST Path: bga.com!news.sprintlink.net!howland.reston.ans.net!swiss.ans.net!cmcl2!thecourier.cims.nyu.edu!thecourier.cims.nyu.edu!nobody From: dewar@cs.nyu.edu (Robert Dewar) Newsgroups: comp.lang.ada Subject: Re: Variable Args, Ada Date: 18 Oct 1994 12:44:37 -0400 Organization: Courant Institute of Mathematical Sciences Distribution: comp Message-ID: <380u1l$hmc@schonberg.cs.nyu.edu> References: <1994Oct15.215733.12384@atc1.atc.com> NNTP-Posting-Host: schonberg.cs.nyu.edu Date: 1994-10-18T12:44:37-04:00 List-Id: "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.