Expressions
Expressions in Rell are used to perform operations and control program flow, combining data, variables, and operators. They enable everything from basic arithmetic to complex conditional logic, essential for building dynamic dapps.
Rell offers various data types, including null, boolean, integer, text, byte array, big integer, and decimal, supporting a range of operations and precise data handling.
Operators in Rell help with data access, calculations, comparisons, and logical operations, including arithmetic, relational, equality, and assignment operations.
The if and when constructs can be used as expressions, with each arm being either a plain expression or a value block that ends in a result expression.
Lambda expressions are anonymous functions written with arrow syntax that evaluate to first-class function values, with parameter types taken from annotations or the use site.
The return, break, and continue keywords can be used as expressions, which never produce a value and are most useful as conditional arms and as guard clauses on the right of the elvis operator.