articles/c.md: update

This commit is contained in:
tocariimaa 2025-02-11 01:19:09 -03:00
parent 323906de43
commit 5ce91859de

View file

@ -3,12 +3,12 @@ C is a procedural, compiled programming language created by Dennis Ritchie in 19
Despite being an "old" language, it remains very relevant and it will stay that way for the next 100 years and more.
When compared with "modern" programming languages, C is a simple and minimal language, since it lacks "modern" features such as
generics, "memory safety", standard data structures and other high-level constructs, for that it is generally considered a "low-level"
generics, memory safety, standard data structures and other high-level constructs, for that it is generally considered a low-level
language, even though strictly is a high-level language, since it abstracts over the platform dependent assembly language, effectively
turning C into a "portable assembly". C detractors are quick to point nonsense such as "C can't be a portable assembly because it forces
turning C into a portable assembly. C detractors are quick to point nonsense such as "C can't be a portable assembly because it forces
an abstracts model", ignoring the fact that C being so influential that any CPU architecture meant to be taken seriously has a C compiler
(therefore a CPU made to efficiently execute C, incidentally or not). Additionally, it is quite unforgiving and does not handhold the
programmer at all, in part this is good since it forces to actually think what one is doing, unlike in "modern" languages.
programmer at all, in part this is good since it forces to actually think what one is doing, unlike in modern languages.
C was created in 1973 by Dennis Ritchie, then working in the [Unix](unix.md) operating system, which up to that point was
exclusively written in PDP-11 assembly (thus non portable) as a programming language suitable for systems programming.
@ -21,7 +21,7 @@ and here: <http://cm.bell-labs.co/who/dmr/primevalC.html> (also includes a brief
In 1978 the first edition of *The C Programming Language* was released, describing pre-ANSI C nowadays known as "K&R C".
This version had slight syntax differences, one of them being a different function parameter syntax and extensive use of
the explicit `int` type.
the implicit `int` type (when no type was specified, it defaulted to `int`).
In 1979 C was defiled by Bjarne Stroustrup and turned into the abomination nowadays known as [C++](cpp.md).