<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="">A big +1 to this notation. <div class=""><br class=""></div><div class=""><div class=""><br class=""><div><blockquote type="cite" class=""><div class="">On 06 Apr 2016, at 20:47, Milos Rankovic via swift-evolution <<a href="mailto:swift-evolution@swift.org" class="">swift-evolution@swift.org</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><meta http-equiv="Content-Type" content="text/html charset=us-ascii" class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><br class=""><div class=""><blockquote type="cite" class=""><div class="">On 6 Apr 2016, at 19:35, Pyry Jahkola via swift-evolution <<a href="mailto:swift-evolution@swift.org" class="">swift-evolution@swift.org</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div class="" style="font-family: -webkit-standard; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;"><span class="" style="font-weight: bold; font-family: Menlo-Regular; font-size: 11px;">func anyCommonElements<T, U></span><span class="" style="font-family: Menlo-Regular; font-size: 11px;"><b class="">(lhs: T, _ rhs: U) -> Bool</b></span></div><div class="" style="font-family: -webkit-standard; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;"><span class="" style="font-family: Menlo-Regular; font-size: 11px;"><b class=""><font color="#7b219f" class=""> where T : SequenceType,</font></b></span></div><div class="" style="font-family: -webkit-standard; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;"><b class=""><font color="#7b219f" class=""><span class="" style="font-family: Menlo-Regular; font-size: 11px;"> U : SequenceType,</span><br class="" style="font-family: Menlo-Regular; font-size: 11px;"><span class="" style="font-family: Menlo-Regular; font-size: 11px;"> T.Generator.Element: Equatable,</span></font></b></div><div class="" style="font-family: -webkit-standard; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;"><b class=""><font color="#7b219f" class=""><span class="" style="font-family: Menlo-Regular; font-size: 11px;"> T.Generator.Element == U.Generator.Element</span><br class="" style="font-family: Menlo-Regular; font-size: 11px;"></font></b></div><div class="" style="font-family: -webkit-standard; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;"><span class="" style="font-family: Menlo-Regular; font-size: 11px;">{</span></div><div class="" style="font-family: -webkit-standard; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;"><span class="" style="font-family: Menlo-Regular; font-size: 11px;"> ...</span></div><div class="" style="font-family: -webkit-standard; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;"><span class="" style="font-family: Menlo-Regular; font-size: 11px;">}</span></div><br class="" style="font-family: -webkit-standard; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;"></div></blockquote></div><br class=""><div class="">This is an excellent idea: +1!</div><div class=""><br class=""></div><div class="">If `where` is left on a previous line, it would also appear more in line with `throws`:</div><div class=""><br class=""></div><div class=""><div class=""><span class="" style="font-weight: bold; font-family: Menlo-Regular; font-size: 11px;">func anyCommonElements<T, U></span><span class="" style="font-family: Menlo-Regular; font-size: 11px;"><b class="">(lhs: T, _ rhs: U) -> Bool </b></span><b class="" style="font-family: Menlo-Regular; font-size: 11px;"><font color="#7b219f" class="">where</font></b></div><div class=""><span class="" style="font-family: Menlo-Regular; font-size: 11px;"><b class=""><font color="#7b219f" class=""> T : SequenceType,</font></b></span></div><div class=""><b class=""><font color="#7b219f" class=""><span class="" style="font-family: Menlo-Regular; font-size: 11px;"><b class=""><font color="#7b219f" class=""> </font></b>U : SequenceType,</span><br class="" style="font-family: Menlo-Regular; font-size: 11px;"><span class="" style="font-family: Menlo-Regular; font-size: 11px;"><b class="" style=""><font color="#7b219f" class=""> </font></b>T.Generator.Element: Equatable,</span></font></b></div><div class=""><b class=""><font color="#7b219f" class=""><span class="" style="font-family: Menlo-Regular; font-size: 11px;"><b class=""><font color="#7b219f" class=""> </font></b>T.Generator.Element == U.Generator.Element</span><br class="" style="font-family: Menlo-Regular; font-size: 11px;"></font></b></div><div class=""><span class="" style="font-family: Menlo-Regular; font-size: 11px;">{</span></div><div class=""><span class="" style="font-family: Menlo-Regular; font-size: 11px;"> ...</span></div><div class=""><span class="" style="font-family: Menlo-Regular; font-size: 11px;">}</span></div></div><div class=""><div class=""><span class="" style="font-family: Menlo-Regular; font-size: 11px;"><br class=""></span></div></div><div class=""><br class=""></div><div class="">milos</div></div>_______________________________________________<br class="">swift-evolution mailing list<br class=""><a href="mailto:swift-evolution@swift.org" class="">swift-evolution@swift.org</a><br class="">https://lists.swift.org/mailman/listinfo/swift-evolution<br class=""></div></blockquote></div><br class=""></div></div></body></html>