<< Previous Suneido > Contents > LanguageNext >> 

Whitespace

Whitespace (blanks, tabs, newlines) is ignored except as it serves to separate ambiguous sequences of characters.

Newlines mark the end of an expression statement, unless it is obviously incomplete e.g. inside (), [], {}, or after a binary operator.

A newline is also significant in the following situations:

This:Will be interpreted as:
if Func(...) { ... }
if Func(..., { ... })
if Func(...)
    { ... }
if (Func(...))
    { ... }
if Name { ... }
if (Name { ... })
if Name
    { ... }
if (Name)
    { ... }

<< Previous Suneido > Contents > LanguageNext >> 
Copyright (C) 2000-2007 Suneido Software Corp. All rights reserved worldwide.