News for hackers. Stuff that matters.
Re:Introduction to Ada by Lucretia9 on Thursday September 03, 2020 @03:41AM (#24361684)
It's Pascal inspired but certainly not any of Wirth's syntaxes, like 1/2 line if's, semi colons in weird places making blocks look odd. Ada has a more inclusive syntax, whereby "is" or "begin" and "end" encases what is inside it. Compare Modula's:

    MODULE X;
        ...
    END MODULE X.
and Ada's:

    package X is
       ...
    end X;
Ada's package feels like one statement containing others, whereby Modula's looks like it ends on the first line.
Re:Introduction to Ada by EdPF on Thursday September 03, 2020 @02:36PM (#24367220)
That difference may be due to ";" being considered a statement separator in Pascal, and a statement terminator in Ada. https://wiki.haskell.org/Terminator_vs._separator
Re:Introduction to Ada by mypalmike on Thursday September 03, 2020 @01:12PM (#24366214)
Yeah when I learned Ada in college it seemed like it was a better Pascal, including fixing the quirky inconsistent termination.