Whitespace - The Nitrate Programming Language

Nitrate is a whitespace-insensitive programming language, meaning that one or more whitespace characters are treated as a single whitespace character.

Whitespace Code Points

Code PointDescription
U+0020Space
U+000CForm Feed
U+000ALine Feed
U+000DCarriage Return
U+0009Horizontal Tab
U+000BVertical Tab

Example

To to clear, because whitespace is ignored, the following code snippets are equivalent:

fn main() {
    let conn = ConnectionBuilder ()
    . op1()
        .op2  ()
        .  op3();
}

fn main() {
    let conn = ConnectionBuilder().op1().op2().op3();
}


Variant 1 encoded in hexadecimal:

666e206d61696e2829207b0a202020206c657420636f6e6e203d20436f6e6e656374696f6e4275696c6465722028290a202020202e206f703128290a20202020202020202e6f7032202028290a20202020202020202e20206f703328293b0a7d0a

Variant 2 encoded in hexadecimal:

666e206d61696e2829207b0a202020206c657420636f6e6e203d20436f6e6e656374696f6e4275696c64657228292e6f703128292e6f703228292e6f703328293b0a7d0a