Skip to documentation
SplitScript
  • Language
  • Standard library
  • Guides
  • Migration

SplitScript reference / Language / T?

T?

syntax

Type?

Names an optional type.

A T? contains either Some(T) or None. Plain values lift to Some, and match uses Some(value) plus None.

Examples

Annotate an optional value

let selectedLevel: i32? = None
Generated from the SplitScript compiler's documentation catalogs.