< Previous | Contents | Next >

Using Whitespace

The next line in the program is a blank line. The compiler ignores blank lines. In fact, compilers ignore just about all whitespacespaces, tabs, and newlines. Like comments, whitespace is just for us humans.

Judicious use of whitespace helps make programs clearer. For example, you can use blank lines to separate sections of code that belong together. I also use whitespace (a tab, to be precise) at the beginning of the two lines between the curly braces to set them off.