I am not convinced that leap years can be called "special cases", after all they are a known occurrence and happen roughly every 4 years (and they were taken into account - wrongly - in the code in the example), if something similar had happened with the divisible by 100 but not by 400 rule, that happens three times every 400 years (and that seems not have been taken into account in the code) I would have found it more convincing.