[fpc-pascal] The reason why linus torvalds hate-pascal

Marco Alvarado cronodragon at gmail.com
Thu Apr 17 21:57:19 CEST 2008


The problem of GOTO is that C doesn't have one. If C had one, and
Pascal didn't have a GOTO, they would blame Pascal for not having it.
In assembler GOTOs make a lot of sense (i.e. JMP and Jxx), and it's
weird C doesn't have one, after all C tries to be the lowest level of
the highest level languages. It's great Pascal have both high and low
level features.

In my opinion nested functions are a more structured way of creating a
program, that's something you don't have in C.

And when you have to write something like:

int x, int y, int z, int w, int a, int b, int c...

Instead of the faster, more elegant and more readable Pascal way:

x, y, z, w, a, b, c: Integer

I don't understand why people say that C is a faster language...
neither the compiler beats Pascal.

Also, what's the advantage of having a return, it forces to quit the
function, and that's lack of freedom. If you wanted to keep working
with the value, you would have to create a temporal variable, which is
less readable, especially if you are already working with other temps.



More information about the fpc-pascal mailing list