ANL-CEEESA / UnitCommitment.jl

Optimization package for the Security-Constrained Unit Commitment Problem
Other
104 stars 24 forks source link

Safer comparisons with nothing #1

Closed mtanneau closed 3 years ago

mtanneau commented 3 years ago

The recommended syntax for comparing whether x is nothing is

x === nothing
x !== nothing

It is more compiler-friendly than x == nothing and x != nothing, which can technically be overloaded by a user.

iSoron commented 3 years ago

Thank you for the pull request, @mtanneau!