enum-comparison
master
Enums are singletons by design so it's safe (and faster) to compare by reference. This also covers the null case.