2 ms·
The "extending" was an order of magnitude less intrusive with C than it was with Pascal. With C, you wrote a new function that wasn't part of the AT&T distribu
by AnimalMuppet 4y ago
The "extending" was an order of magnitude less intrusive with C than it was with Pascal. With C, you wrote a new function that wasn't part of the AT&T distribution, which was a perfectly normal thing to do. With Pascal, you had to change the language definition, which probably meant changing the compiler.
- pjmlp 4y agoForgetting about everything else besides bare bones terminal output? I have some 1980's books with lots of extending and dialects like RatC.
- AnimalMuppet 4y ago> Forgetting about everything else besides bare bones terminal output? No. You could write things that were not "bare bones terminal output" as functions (or libraries) within C, and do anything you needed to do. You could "extend the language by adding library functions" without having to "extend the language by changing the compiler or the shipped-with-the-compiler libraries". Some of those library extensions could be useful enough to sell as a package, and people did. That's not the same as what you had to do with Pascal. > I have some 1980's books with lots of extending and dialects like RatC. Yes, some people also altered the syntax in various ways. But that wasn't necessary with C the way it was with Pascal.
- pjmlp 4y agoNothing changes the fact that C's actual portability came decades later, and people did had to cater for those changes, doesn't matter if it were a few or a bunch of them.
- AnimalMuppet 4y agoSo? If we were arguing about whether C was perfect, your point might be relevant. But we were arguing about whether C was more usable than Pascal. And your latest reply makes it look like can no longer argue that point, but still feel compelled to argue something. C was more usable in unextended form than Pascal was. C extension more often took the form of libraries, which were more portable. This made C programs themselves more portable between compiler variants than Pascal programs were. And that is a big part of why C won and Pascal lost. It wasn't just free compilers. (By the way, were any of the extensions and dialects free? To the degree that they caught on, that disproves your "free" argument; to the degree they didn't, that disproves your "but variants!" argument.)
- pjmlp 4y agoNah, we are arguing that when C dudes get pointed out that C also required extensions to be usable outside UNIX and PDP-11, the outcome is always this two weights, two measures kind of hand waving.