I just spent a lot of time […] I’d like to suggest that putting a semicolon after do should generate a compile error […]
Yeah, PEBCAK. There are
many code samples that
may have
limited usefulness, but
are allowed and
syntactically correct, examples:
;;;;;;;;;;;;;;;; { extraneous empty statements }
++-+-+---+-+----+-+-42 { superfluous unary operators }
@myPointerVariable^ { instead of _just_ `myPointerVariable` }
Still I disapprove emission of warnings in such cases: It adds
complexity to the compiler at
minimal benefit. On top of that it’s difficult to
formally codify the threshold that something deserves a warning.