Skip to content

optional

Ivan Pidhurskyi edited this page Nov 26, 2025 · 1 revision

Optional Type

type T?

Nullable/optional type using the ? type constructor. Represents values that can be null.

Constructors:

  • (macro) null - The null value

Operations:

  • *optional - Dereference to extract value or raise error
  • bool(optional) - Convert to boolean to check if non-null
  • Pattern matching with Some(T) or Nothing() constructors

Clone this wiki locally