Hacker News new | ask | show | jobs
by Sad90sNerd 638 days ago
These extensions are Ada features.

Ada has:

- Labels in the form of: Call (Param_A => 1, Param_B => "Foo");

- Underscores can be used in numbers of any base: X : Integer := 1_000;

- Nested subprograms

- Range based tests

1 comments

As mentioned in the article, Pascal had these even before Ada, and a task type with an entry is effectively a generator. I think people often forget that C was incredibly primitive for its time compared to multiple other languages.
Many are sold on the story of C's greatness design, without bothering with historical fact checking.

C rode the wave of UNIX's success, it is like someone getting into computers in 2024 and praising Javascript's greatness for Web development.

ESPOL in 1961 already had unsafe code blocks, almost a decade before C came to be.