<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="">On Dec 7, 2015, at 12:01 PM, Dmitri Gribenko via swift-evolution <<a href="mailto:swift-evolution@swift.org" class="">swift-evolution@swift.org</a>> wrote:<br class=""><div><blockquote type="cite" class=""><span style="font-family: menlo, consolas, 'courier new', monospace, sans-serif;" class="">func > <A: Comparable, B: Comparable, C: Comparable>(lhs: (A, B, C), rhs: (A, B, C)) -> Bool {</span><br class=""><div class=""><div dir="ltr" class=""><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="">
<div class=""><span style="font-family:menlo,consolas,"courier new",monospace,sans-serif" class=""> if lhs.0 != rhs.0 { return lhs.0 > rhs.0 }</span><span style="font-family:menlo,consolas,"courier new",monospace,sans-serif" class=""><br class=""></span></div>
<div class=""><span style="font-family:menlo,consolas,"courier new",monospace,sans-serif" class=""> if lhs.1 != rhs.1 { return lhs.1 > rhs.1 }</span><span style="font-family:menlo,consolas,"courier new",monospace,sans-serif" class=""><br class=""></span></div>
<div class=""><span style="font-family:menlo,consolas,"courier new",monospace,sans-serif" class=""> return lhs.2 > rhs.2</span><span style="font-family:menlo,consolas,"courier new",monospace,sans-serif" class=""><br class=""></span></div>
<div class=""><span style="font-family:menlo,consolas,"courier new",monospace,sans-serif" class="">}</span></div></div></blockquote><div class=""><br class=""></div><div class="">Looks like a good idea to me! Also the <= and >= operators, right?</div></div></div></div></div></blockquote><div><br class=""></div>+1 from me too.</div><div><br class=""><blockquote type="cite" class=""><div dir="ltr" class=""><div class="gmail_extra"><div class="gmail_quote"><div class="">I personally don't see a point in going as high as 12 tuple elements. About 4 or 5 makes sense to me. Given that Swift does not have variadic generics right now, these long tuples have to be defined by someone manually. If one is defining a tuple that is that long, I'd argue that they should be using a custom struct instead.</div></div></div></div></blockquote><br class=""></div><div>I tend to agree with Dmitri here. Independent of the code size concern, what is the expected use-case for > 4 element tuples?</div><div><br class=""></div><div>-Chris</div><br class=""></body></html>