[OT] Sharp Regrets: Top 10 Worst C# Features

Jonathan M Davis via Digitalmars-d digitalmars-d at puremagic.com
Wed Aug 19 07:01:32 PDT 2015


On Wednesday, 19 August 2015 at 12:01:35 UTC, Timon Gehr wrote:
> On 08/19/2015 09:40 AM, Jonathan M Davis wrote:
>>
>> But I do think that that whole deal about partial ordering is 
>> just
>> bizarre. If == is true, <= and >= should always be true and 
>> vice versa.
>> Similarly, if any of them are false, all three of them should 
>> be false.
>> If you want to do something else, then don't use the built-in 
>> operators.
>
> Like the built-in types do? :o)

Yeah. I guess that the floating point stuff doesn't quite work 
that way thanks to NaN. *sigh* I hate floating point numbers. 
Sometimes, you have no choice other than using them, but man are 
they annoying.

- Jonathan M Davis


More information about the Digitalmars-d mailing list