guregu / null

reasonable handling of nullable values
BSD 2-Clause "Simplified" License
1.84k stars 238 forks source link

Missing Time.IsZero() method? #29

Closed huangjunwen closed 6 years ago

huangjunwen commented 6 years ago

It seems that all types in null except null.Time has IsZero() method, is it intended?

guregu commented 6 years ago

Hello, it's kind of intended because null's IsZero has a very different meaning than time.Time's IsZero. But I think I will add it for consistency. Thanks for the issue.

guregu commented 6 years ago

Added in v3.4.0.