Re:The Development of the C Language
by marssaxman on Thursday August 31, 2017 @02:28PM
(#15142599)
No, indeed! This obsession with "undefined behavior" and the desire to eliminate it from the language spec is something recent; when I learned C, we all just understood such gaps in the spec to be places where the compiler writer would do whatever was reasonable for the target platform.
> I always assumed C came from a strong typing background
C is notoriously weakly typed. There are lots of implicit casts that will automatically be applied. And (void *) is your door to freedom from types (this can be a good thing in some cases, of course.)
C was designed to be more portable than assembler. In fact, that was one of its raisons d'être. It is not hard to imagine that other programming languages (COBOL, Ada, Common Lisp, Perl) could be more portable than C, but still.
For example I always assumed C came from a strong typing background and its premises was always about being portable. Neither of them are true.