[swift-evolution] [Draft][Proposal] Formalized Ordering
Ben Rimmington
me at benrimmington.com
Sun Jul 24 13:32:17 CDT 2016
> On 22 Jul 2016, at 18:43, Dave Abrahams wrote:
>
>> on Fri Jul 22 2016, Haravikk <swift-evolution at swift.org> wrote:
>>
>> In my own hacked implementation I'm using Order.before, Order.same,
>> and Order.after. It's not much of a change, but it seems to clarify
>> what the enum is, at least in my opinion.
>
> I always thought the name “Order” would be perfect if it weren't so
> short and likely to conflict with type names that user code will want.
> We do have qualification to fall back on, so this is a judgement call.
enum TotalOrder {
case ascending
case identical
case descending
}
-- Ben
More information about the swift-evolution
mailing list