3 ms·
Algol 60 and Pascal had 'BEGIN ... END' to handle multiple statements in a block, but Ada and Wirth's successors, Modula-2 and Oberon, removed them except to de
by timbit42 3y ago
Algol 60 and Pascal had 'BEGIN ... END' to handle multiple statements in a block, but Ada and Wirth's successors, Modula-2 and Oberon, removed them except to denote where code begins in a PROCEDURE. It is much cleaner.
Poorly contrived example in Oberon:
IF n > 1 THEN
n := n * n;
RETURN 0
ELSE
RETURN 1
END