Nullability
12345678
template `??`(a, b: untyped): untyped =
let x = a
if x.isNil: b else: x
var x: string
echo x ?? "test" # -> test
echo ??(x, "test") # -> type mismatch: got ((string, string))
# but expected [...] template `??`(a, b: untyped): untyped
Nim
INFO