gregoryyoung / nothing

Replacement of the System.Void type
The Unlicense
57 stars 11 forks source link

Add equality and comparison operators, pleeeease #1

Open dsyme opened 9 years ago

gregoryyoung commented 9 years ago

:)

pezipink commented 9 years ago

I agree. Without said enhancement, this otherwise promising library is worth Nothing.

mattjohnsonpint commented 9 years ago

+1. How else could I determine that I have Nothing?

mattjohnsonpint commented 9 years ago

Comparison is particularly interesting. I mean, I think I know what it means to have nothing, or have more than nothing, but what is less than nothing?

vossccp commented 9 years ago

Wouldnt implementing Equals imply that „Nothing“ has some kind of a value? Wouldn’t this make “Nothing” “Something” and hence break the specs? I believe Nothing.Instance==Nothing.Instance should always be false. There is an infinite number of Nothings out there. My Nothing is not your Nothing. (This also questions the design decision of having something like Nothing.Instance)

marcingolenia commented 3 years ago

Is there any progress on this? Maybe we can use records from C# 9?