It's amazing how underestimated the Object Pascal language is. Certain people or rivals want to write it off or declare it's "dead", yet the language (including various dialects) are still going strong.
Yeah, it was pity that Borland lost its way, and Apple decided to refocus from Object Pascal into C++.Otherwise it would still be a big contender.Everything that Zig offers over C as selling point was already there in Object Pascal.
It was not. It just made any dynamic structures so painful that few programmers used them.But it _did_ have range checks for array access.
> It just made any dynamic structures so painful that few programmers used themWhat's an example of the pain?
What's awkward about the syntax? It's straightforward:<a href="https://docwiki.embarcadero.com/RADStudio/Florence/en/Pointers_and_Pointer_Types_(Delphi)#Overview_of_pointers" rel="nofollow">https://docwiki.embarcadero.com/RADStudio/Florence/en/Pointe...<a href="https://castle-engine.io/modern_pascal#_pointers" rel="nofollow">https://castle-engine.io/modern_pascal#_pointers
Nope, you don't need to. For example, all class references are pointers and they don't need to be dereferenced manually.Object Pascal's pointer syntax is detailed in the links I gave you.
baranul · · focus · HN ↗
pjmlp · · focus · HN ↗
Otherwise it would still be a big contender.
Everything that Zig offers over C as selling point was already there in Object Pascal.
ape4 · · focus · HN ↗
cyberax · · focus · HN ↗
But it _did_ have range checks for array access.
cisc · · focus · HN ↗
What's an example of the pain?
cyberax · · focus · HN ↗
cisc · · focus · HN ↗
<a href="https://docwiki.embarcadero.com/RADStudio/Florence/en/Pointers_and_Pointer_Types_(Delphi)#Overview_of_pointers" rel="nofollow">https://docwiki.embarcadero.com/RADStudio/Florence/en/Pointe...
<a href="https://castle-engine.io/modern_pascal#_pointers" rel="nofollow">https://castle-engine.io/modern_pascal#_pointers
cyberax · · focus · HN ↗
cisc · · focus · HN ↗
Object Pascal's pointer syntax is detailed in the links I gave you.
[deleted] · · focus · HN ↗
[deleted]