It is customary to distinguish simple and compound statements: a simple statement contains no other statement; compound statements may include other sequences of statements.
The Ada syntax is such that wherever a single statement may appear, a sequence of several statements may also appear. This simplifies program modification since insertion of a statement can be done without the need to insert extra begin and end markers (as was the case in Algol and Pascal).
A sequence of statements contains at least one statement: an empty sequence is not allowed. For readability reasons, Ada provides an explicit null statement for situations where other languages would use (implicit) empty statements. For example, if nothing needs to be done for a given alternative of a case statement, it is preferable to state this explicitly by a null statement:
case TODAY is when TUE | THU | SAT => null; when MON | WED | FRI | SUN => ACTION; end case; |
rather than convey the same impression by an empty statement which could be taken as an unintentional omission, as in the Pascal formulation given below:
case TODAY of TUE, THU, SAT : ; MON, WED, FRI, SUN: ACTION end; |