Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Undefined Default

By default, reading an undefined variable returns 0. Use ?default = value to change this:

?default = "hello"
write(x)       : prints "hello"

?default = 99
write(y)       : prints 99

The name after ? is descriptive only and is ignored by the runtime. Only one global default exists. Once set, every undefined variable will return that value until you change it again.