class Test def main is shared # ? is a binary operator for nil coalescence i as int? = nil assert i ? 5 == 5 i = 3 assert i ? 5 == 3 # augmented assignment: ?= i = nil i ?= 5 assert i==5 i ?= 10 assert i==5