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:
and Ada's:
Ada's package feels like one statement containing others, whereby Modula's looks like it ends on the first line.
[ Parent
| on HN ]
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