Namespace definitions

Meta information about rell types.

Since

0.6.0

Types

Link copied to clipboard
hidden abstract type error_type
Link copied to clipboard
type meta

Functions

Link copied to clipboard
function error(message: text): error_type

Unconditionally fail, raising an exception, with an optional message.

Ends control flow, enabling one to write e.g.

function f(x: integer?): integer {
if (x == null) {
rell.error('null argument');
}
return x * x; // compiler knows that x cannot be null, so we can write x * x
}

rell.error(message) is equivalent to require(false, message), except that rell.error() has the additional end-of-control-flow behaviour.