Optional semi-colons

Wietse Z. Venema wietse at wzv.UUCP
Tue May 2 06:57:06 AEST 1989


Arguing why \n should not terminate C statements where syntax permits, I wrote:
>For example, the C preprocessor. Having a unique statement terminator frees
>the programmer of worrying where newlines might show up after macro expansion.

mcdonald at uxe.cso.uiuc.edu (Doug McDonald) writes:
>Really? What happens if macro expansion results in a string longer
>than 509 characters, or an expression several thousands of bytes long?
>I have had both of those happen. Serious worries result.

You will have to insert some extra newlines into the source.  My point
is that you won't have to worry about prematurely terminated statements.
-- 
work:	wswietse at eutrc3.uucp	| Eindhoven University of Technology
work:	wswietse at heitue5.bitnet	| Mathematics and Computing Science
home:	wietse at wzv.uucp		| Eindhoven, The Netherlands



More information about the Comp.lang.c mailing list