[Info-vax] VAX Macro to C conversion

Arne Vajhøj arne at vajhoej.dk
Tue Jul 9 22:37:48 EDT 2019


On 7/9/2019 8:20 PM, Bill Gunshannon wrote:
> On 7/9/19 9:04 AM, Dave Froble wrote:
>> One might also argue that C is rather prone to errors.
> 
> C is not prone to any more errors than any other language. See
> previous statement.

Languages are not equal when it comes to prevent errors.

And C is probably one of the worst in this regard among widely
used languages.

Characteristics like:
* no check on array indexes
* very flexible pointer arithmetic
* very flexible type casting
* allowing use of uninitialized variables
* no string type
* non type safe enum
* lots of old and bad design in standard RTL
* lots of undefined and implementation specific behavior
makes it much easier to write code that result in bad runtime
error than most other common languages of today.

Some of these characteristics may be very useful in certain
contexts. But that does not make them less likely to
result in errors.

Arne





More information about the Info-vax mailing list