Closed mrodz closed 10 months ago
optionals
?=
a: int? = nil if a ?= meaning_of_life() { # typeof(a) == "int" print a } # typeof(a) == "int?" print a
or
get (liberty()) or "death"
nil
guns: int? = nil get test or "roses" # ^ `str` is not valid here, `int` is expected
get nil or nil # ^ `nil` cannot be here, because `nil` does not satisfy an indeterminate typecheck
get nil or 5 # valid
optionals
codebase?=
or
requires parenthesis for multi-postfix operations (for now)nil
in specific cases