Closed mtanneau closed 3 years ago
The recommended syntax for comparing whether x is nothing is
x
nothing
x === nothing x !== nothing
It is more compiler-friendly than x == nothing and x != nothing, which can technically be overloaded by a user.
x == nothing
x != nothing
Thank you for the pull request, @mtanneau!
The recommended syntax for comparing whether
x
isnothing
isIt is more compiler-friendly than
x == nothing
andx != nothing
, which can technically be overloaded by a user.