<div dir="ltr">Here&#39;s a draft of the the proposal: <a href="https://gist.github.com/chrisamanse/2ab39e31e93d5c11d0b5">https://gist.github.com/chrisamanse/2ab39e31e93d5c11d0b5</a></div><br><div class="gmail_quote"><div dir="ltr">On Sun, Dec 6, 2015 at 7:52 AM Philippe Hausler &lt;<a href="mailto:phausler@apple.com">phausler@apple.com</a>&gt; wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word"><div>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><br></div><div>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><div><blockquote type="cite"></blockquote></div></div><div style="word-wrap:break-word"><div><blockquote type="cite"><div>On Dec 5, 2015, at 3:36 PM, Chris Amanse via swift-corelibs-dev &lt;<a href="mailto:swift-corelibs-dev@swift.org" target="_blank">swift-corelibs-dev@swift.org</a>&gt; wrote:</div><br></blockquote></div></div><div style="word-wrap:break-word"><div><blockquote type="cite"><div><div dir="ltr">Hello Swift Developers,<div><br></div><div>I think it&#39;s a good idea to conform NSDate to the Comparable protocol, so instead of using:</div><div><br></div><div>if someDate.compare(today) == .OrderedAscending { }</div><div><br></div><div>Developers can easily compare using compare dates using comparison operators:</div><div><br></div><div>if someDate &lt; today { }</div><div><br></div><div>In my opinion, the code is still readable if developers use comparison operators on NSDates.</div><div><br></div><div>Here&#39;s a quick implementation from my swift-corelibs-foundation fork: <a href="https://github.com/chrisamanse/swift-corelibs-foundation/commit/3c4eff643c5271de5bec2461798051347be13916" target="_blank">https://github.com/chrisamanse/swift-corelibs-foundation/commit/3c4eff643c5271de5bec2461798051347be13916</a></div><div><br></div><div>Thank you.</div></div>
</div></blockquote></div></div><div style="word-wrap:break-word"><div><blockquote type="cite"><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="min-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">
_______________________________________________<br>swift-corelibs-dev mailing list<br><a href="mailto:swift-corelibs-dev@swift.org" target="_blank">swift-corelibs-dev@swift.org</a><br><a href="https://lists.swift.org/mailman/listinfo/swift-corelibs-dev" target="_blank">https://lists.swift.org/mailman/listinfo/swift-corelibs-dev</a><br></div></blockquote></div><br></div></blockquote></div>