4 ms·
It began with ALGOL and it ended with Pascal because Modula-2, Ada and Oberon got rid of BEGIN except one in each PROCEDURE after variable definition and before
by timbit42 4y ago
It began with ALGOL and it ended with Pascal because Modula-2, Ada and Oberon got rid of BEGIN except one in each PROCEDURE after variable definition and before the code begins.
In Pascal, an IF statement looked like this:
IF <cond> THEN BEGIN <true block> END ELSE BEGIN <false block> END END
But Modula-2 and Oberon look like this:
IF <cond> THEN <true block>; ELSE <false block>; END
And Ada looks like:
IF <cond> THEN <true block>; ELSE <false block>; END IF;