Primitives
These are the most basic values in the language, used to describe the smallest elements of data.
Nil
Sometimes you explicitly need to not return a value, this is when to use nil
. It is also what is returned from an empty closure or a closure whose last statement is a let
declaration.
Empty Closure
Empty closure expressions evaluate to nil
.
No Return Closure
Closures that end in a let
declaration implicitly return nil
.
Boolean
The second simplest primitive of the language, the value can only be true
or false
. It is used to represent data that is limited to being in one of two states.
Integer
Used to describe negative or positive integers.
Float
Used to describe negative or positive floating-point numbers.
String
Textual data can be represented using string primitives. Strings are denoted by an opening and closing double quotes ("
) character.
An XML-like syntax for describing the render tree for your application, similar to the browser's HTML or React's JSX.
Last updated