News for hackers. Stuff that matters.
Re:Why Pascal Is Not My Favorite Programming Language (1981)... by kragen on Monday February 03, 2020 @08:17AM (#22223863)
Yes, they each sorted them out. (I'd mention VMS Pascal, too.) But they sorted them out differently, so if you were, for example, writing Software Tools in Pascal, as Kernighan had, you couldn't use their solutions; they were incompatible from one system to the next. ISO Extended Pascal did not solve this problem even when it was published in 1991, ten years after this paper, because even today it's not universally supported; for example, FreePascal still doesn't support it.

In a few cases, like TeX and STiP, the solution was to write in standard Wirth and Jensen Pascal, despite the inconveniences. Most people instead resigned themselves to writing nonportable code.

By the way, I see that the comment window has closed, but I'm still interested in your thoughts on https://news.ycombinator.com/item?id=22083468 — it represented a fair bit of effort on my part, and it's disappointing that you haven't answered at all.

Re:Why Pascal Is Not My Favorite Programming Language (1981)... by pjmlp on Monday February 03, 2020 @09:00AM (#22224134)
Yeah that is the other typical argument, where it gets "forgotten" that outside UNIX in 1981, C was equally non-portable with dialects of K&R C everywhere like Small-C, RatC and plenty of others, taking yet another 10+ years for a standard to come up and respective compilers to catch up with it.
Re:Why Pascal Is Not My Favorite Programming Language (1981)... by AnimalMuppet on Monday February 03, 2020 @11:33AM (#22225743)
So? Does that make anything kragen said untrue? This is just whataboutism, only on technical rather than political topic.

[Edit: On reflection, you're addressing a different topic. The question the rest of us are talking about is "was Pascal that bad?". And the answer is, "yes".

You want to talk about something else - Pascal vs. C. But in C, you could at least do "#ifdef Compiler_A" to achieve "portability". Yeah, it's not very good portability, but you could get to one source file that would compile with different compilers. For Pascal, so far as I know, you couldn't do even that much.]

Re:Why Pascal Is Not My Favorite Programming Language (1981)... by pjmlp on Monday February 03, 2020 @03:00PM (#22228305)
All Pascal dialects supported conditional compilation.
Re:Why Pascal Is Not My Favorite Programming Language (1981)... by AnimalMuppet on Monday February 03, 2020 @03:19PM (#22228524)
They did? I don't remember that. What was the syntax?

Or was it that all post-Jensen-&-Wirth dialects supported conditional compilation, and I don't remember it because I was stuck on Jensen & Wirth?

Re:Why Pascal Is Not My Favorite Programming Language (1981)... by pjmlp on Tuesday February 04, 2020 @03:07AM (#22233404)
Amsterdam Compiler Kit Pascal compiler used the UNIX preprocessor.

Object Pascal (Apple) and Turbo Pascal used {$if ...}

VMS Pascal used %IF.

UCSD Pascal used {$B}.

I grant they weren't uniform, but they were available.

Re:Why Pascal Is Not My Favorite Programming Language (1981)... by clouddrover on Monday February 03, 2020 @05:58PM (#22230310)
You keep talking about what Pascal was. That no longer matters. What matters is what Pascal is today.

Both Free Pascal and Delphi support conditional compilation and have done for a long time:

http://docwiki.embarcadero.com/RADStudio/Rio/en/Conditional_...

https://wiki.freepascal.org/Conditional_compilation

Re:Why Pascal Is Not My Favorite Programming Language (1981)... by AnimalMuppet on Monday February 03, 2020 @06:54PM (#22230742)
pjmlp said "supported", no "support". He and I were talking about the past. We're allowed to do that - to have the subject be what we want, rather than what you think it should be.

In fact, the article was about Pascal circa 1981, so I'm not sure why you think the discussion ought to be about present-day Pascal.

Re:Why Pascal Is Not My Favorite Programming Language (1981)... by clouddrover on Monday February 03, 2020 @07:30PM (#22231010)
Because the criticisms from 1981 are no longer relevant and haven't been relevant for a long time. Turbo Pascal had conditional compilation since at least 1987.
Re:Why Pascal Is Not My Favorite Programming Language (1981)... by AnimalMuppet on Monday February 03, 2020 @09:32PM (#22231797)
Then just let the whole article pass as being irrelevant, and go comment somewhere else, where they're talking about current languages. The discussion we're having here isn't the one you want to have.
Re:Why Pascal Is Not My Favorite Programming Language (1981)... by clouddrover on Monday February 03, 2020 @09:43PM (#22231853)
Look, these are just the practical realities and no amount of you trying to define what the discussion is (whatever that's supposed to mean) will change that. Pascal is nice. Get on board:

https://www.embarcadero.com/products/delphi

https://www.freepascal.org/

Re:Why Pascal Is Not My Favorite Programming Language (1981)... by kragen on Monday February 03, 2020 @10:16PM (#22232016)
That is definitely false.
Re:Why Pascal Is Not My Favorite Programming Language (1981)... by AnimalMuppet on Monday February 03, 2020 @10:21PM (#22232044)
Your statement would be more convincing if you provided a counterexample...