nothing icon indicating copy to clipboard operation
nothing copied to clipboard

Add equality and comparison operators, pleeeease

Open dsyme opened this issue 9 years ago • 6 comments

dsyme avatar Mar 06 '15 20:03 dsyme

:)

gregoryyoung avatar Mar 06 '15 20:03 gregoryyoung

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

pezipink avatar Mar 06 '15 21:03 pezipink

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

mattjohnsonpint avatar Mar 07 '15 17:03 mattjohnsonpint

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?

mattjohnsonpint avatar Mar 07 '15 17:03 mattjohnsonpint

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)

vossccp avatar Mar 07 '15 19:03 vossccp

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

marcingolenia avatar Jul 28 '21 12:07 marcingolenia