<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class="">In all that seems like a pretty reasonable concept. Foundation is going to be using the same evolution template as the rest of the Swift evolution process; could you fill out a draft of that and I can help campion your proposal to the component owner for NSDate and we can see how this will fair with the rest of the Darwin side of things.</div><div class=""><br class=""></div><div class="">As you can probably guess; operators are not taken lightly since they exist in the global scope and it is good to consider the ramifications of what even something as simple as comparison of dates has in general.</div><br class=""><div><blockquote type="cite" class=""><div class="">On Dec 5, 2015, at 3:36 PM, Chris Amanse via swift-corelibs-dev &lt;<a href="mailto:swift-corelibs-dev@swift.org" class="">swift-corelibs-dev@swift.org</a>&gt; wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class="">Hello Swift Developers,<div class=""><br class=""></div><div class="">I think it's a good idea to conform NSDate to the Comparable protocol, so instead of using:</div><div class=""><br class=""></div><div class="">if someDate.compare(today) == .OrderedAscending { }</div><div class=""><br class=""></div><div class="">Developers can easily compare using compare dates using comparison operators:</div><div class=""><br class=""></div><div class="">if someDate &lt; today { }</div><div class=""><br class=""></div><div class="">In my opinion, the code is still readable if developers use comparison operators on NSDates.</div><div class=""><br class=""></div><div class="">Here's a quick implementation from my swift-corelibs-foundation fork:&nbsp;<a href="https://github.com/chrisamanse/swift-corelibs-foundation/commit/3c4eff643c5271de5bec2461798051347be13916" class="">https://github.com/chrisamanse/swift-corelibs-foundation/commit/3c4eff643c5271de5bec2461798051347be13916</a></div><div class=""><br class=""></div><div class="">Thank you.</div></div>
<img src="https://u2002410.ct.sendgrid.net/wf/open?upn=0mkChau6XnFV-2FCNUik62L9ZaldD0W0ziOwj-2F3jLx368VwIoSCnm1wA3TwQ9YwMofUSwuZefSGnfb4DltNrTEuyQPERg1n8BwZ7fg8oAZYlXDAwDjQtZ9M-2BJe0hEYLhX0K0aHk-2BLrw5n3i7dtjWuzRXKocOCX2PEtCR4Zg-2Bk7Sf-2FHkPYsv8IXvUEGV6e5QbxiKkQe8tf598avLKMyh0Qt8cgubXUURW8yq7-2FuRfdMnWk-3D" alt="" width="1" height="1" border="0" style="height:1px !important;width:1px !important;border-width:0 !important;margin-top:0 !important;margin-bottom:0 !important;margin-right:0 !important;margin-left:0 !important;padding-top:0 !important;padding-bottom:0 !important;padding-right:0 !important;padding-left:0 !important;" class="">
_______________________________________________<br class="">swift-corelibs-dev mailing list<br class=""><a href="mailto:swift-corelibs-dev@swift.org" class="">swift-corelibs-dev@swift.org</a><br class="">https://lists.swift.org/mailman/listinfo/swift-corelibs-dev<br class=""></div></blockquote></div><br class=""></body></html>