Semi-colons as separators are stupid

John M Sellens jmsellens at watmath.UUCP
Mon Nov 4 10:38:08 AEST 1985


Witness Pascal.  Many people feel that since ; is optional in some places
(e.g. before an end) there is no reason to put one there.

Example:
  procedure blort;
  begin
    stmt1;
    stmt2
  end;

If you decide that you want a stmt3, I personally GUARANTEE that 99% of the
time you will forget to add the now necessary semi-colon after stmt2.

It is much more difficult to suffer from this problem using C's ; rules.

QED



More information about the Comp.lang.c mailing list