opCmp, [partial/total/pre]orders, custom floating point types etc.
Andrei Alexandrescu via Digitalmars-d
digitalmars-d at puremagic.com
Tue Jan 12 16:31:48 PST 2016
On 01/12/2016 06:52 PM, John Colvin wrote:
> On Tuesday, 12 January 2016 at 22:28:13 UTC, Andrei Alexandrescu wrote:
>> On 01/12/2016 03:56 PM, John Colvin wrote:
>>> Please consider the second design I proposed?
>>
>> I don't think it solves a large problem. -- Andrei
>
> Ok. Would you consider any solution, or is that a "leave it broken"?
I'd leave it to a named function. Using the built-in comparison for
exotic orderings is bound to confuse users. BTW not sure you know, but D
used to have a number of floating point operators like !<>=. Even those
didn't help. -- Andrei
More information about the Digitalmars-d
mailing list