Otherwise it would still be a big contender.
Everything that Zig offers over C as selling point was already there in Object Pascal.
Otherwise it would still be a big contender.
Everything that Zig offers over C as selling point was already there in Object Pascal.
Trivial C interop - yes. Both pascal and cdecl style calling conventions.
Toolchain? Back then - yes. Today? Probably not; depends what you mean by it. It had perfect COM interop which mattered back then, and you could trivially link stuff if you wanted to. And people did.
> most developers never bothered learning the "go to next error" hotkey and just spammed F9 (compile & run) whenever they fixed a syntax error
We didn't know we were privileged. I thought it was normal thing to have.
Ironically it is still easier in Delphi than the frameworks Microsoft keeps pouring out for .NET and C++.
I keep joking they should afford some Embarcadero licenses to learn how to actually do it.
Also Wirth had nothing to do with Modula-3, that was all DEC / Olivetti SRC work, done by ex-Xerox people with experience on Cedar and Modula-2+.
source: https://go.dev/doc/faq
Without Pascal there would be no Modula.
I do agree with Modula, which isn't the same as Modula-3.
No comptime, but everything else, sure, Turbo Pascal (and then Delphi) had.
Maybe it'll blow your mind (not sure if you find this impressive or not), but Turbo Pascal had sub-second compilation per module on large modules back on my 486 with 4MB of RAM.
Sure, Zig has more features than Pascal, but not the ones you listed (except, of course, for comptime).
And still does. You can get the latest version of Delphi (including a free version for non-commercial use) here: https://www.embarcadero.com/products/delphi
It rocks.
You're also not limited to Delphi. You can use Oxygene https://www.remobjects.com/elements/oxygene/language
If you're not in the mood to rent your compiler, you can also try Lazarus.
Also, for non-commercial use, Delphi is free.
Object Pascal compilers were already super fast in MS-DOS hardware!
But it _did_ have range checks for array access.
What's an example of the pain?
https://docwiki.embarcadero.com/RADStudio/Florence/en/Pointe...
Object Pascal's pointer syntax is detailed in the links I gave you.
IIRC Apple went and made Objective-C(/C++) and then eventually Swift. Not sure if they actually embraced C++ all that much - did they really?
I am talking about Apple after Jobs was kicked out.
You missed the part where NeXT licensed Objective-C from Stepstone, Apple bought NeXT as last survival action before bankruptcy, and OS X sprung out of NeXTSTEP.