Comments and whitespace

In most cases whitespace characters are insignificant in BI#. For example, these two statements are equivalent:

double x = Sin(42);
double
	x =
		Sin(
			42);

Whitespace is only required to separate identifiers and literals from keywords.

BI# supports two different types of comments: single-line comments and multi-line comments. Single-line comments start with two slashes // and end at the end of the line:

// A comment.
int x = 42; // Another comment.

Multi-line comments can span more than a line. They start with /* and end with */:

/*
This comment spans three lines.
*/

You can use multi-line comments to comment out portions of a line:

int x = /* An inline comment. */ 42;