<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><br class=""><div><blockquote type="cite" class=""><div class="">Am 10.05.2016 um 20:51 schrieb Chris Lattner via swift-evolution <<a href="mailto:swift-evolution@swift.org" class="">swift-evolution@swift.org</a>>:</div><br class="Apple-interchange-newline"><div class=""><div class="">Hello Swift community,<br class=""><br class="">The review of "SE-0081: Move where clause to end of declaration" begins now and runs through May 16. The proposal is available here:<br class=""><br class=""><span class="Apple-tab-span" style="white-space:pre">        </span><a href="https://github.com/apple/swift-evolution/blob/master/proposals/0081-move-where-expression.md" class="">https://github.com/apple/swift-evolution/blob/master/proposals/0081-move-where-expression.md</a><br class=""><br class=""><br class=""><span class="Apple-tab-span" style="white-space:pre">        </span>* What is your evaluation of the proposal?<br class=""></div></div></blockquote><div><br class=""></div>+1</div><div><br class=""></div><div>It increases readability of generics by a far margin.</div><div><div class="">I appreciate that the proposal allows to pull out the inheritance/conformance constraints into the where clause, too, very much!</div><div class=""><br class=""></div></div><div><br class=""><blockquote type="cite" class=""><div class=""><div class=""><span class="Apple-tab-span" style="white-space:pre">        </span>* Is the problem being addressed significant enough to warrant a change to Swift?<br class=""></div></div></blockquote><div><br class=""></div>Yes, as more complex generics are a powerful feature of Swift and the increased readability helps designing and using them very much.</div><div><br class=""></div><div><br class=""><blockquote type="cite" class=""><div class=""><div class=""><span class="Apple-tab-span" style="white-space:pre">        </span>* Does this proposal fit well with the feel and direction of Swift?<br class=""></div></div></blockquote><div><br class=""></div>Absolutely.</div><div><br class=""></div><div><br class=""><blockquote type="cite" class=""><div class=""><div class=""><span class="Apple-tab-span" style="white-space:pre">        </span>* If you have used other languages or libraries with a similar feature, how do you feel that this proposal compares to those?<br class=""></div></div></blockquote><div><br class=""></div>Ceylon uses a similar syntax to declare the constraints of generic parameters:</div><div><pre style="background-color: rgb(255, 255, 255); font-family: Menlo;" class=""><span style="color:#3399cc;" class="">shared </span><span style="color:#4c4c4c;" class="">interface </span><span style="color:#990066;" class="">DirectedGraph</span><<span style="color:#990066;" class="">V</span>,<span style="color:#990066;" class="">E</span>> <span style="color:#4c4c4c;" class="">satisfies </span><span style="color:#990066;" class="">IncidenceGraph</span><<span style="color:#990066;" class="">V</span>,<span style="color:#990066;" class="">E</span>><br class=""> <span style="color:#4c4c4c;" class="">given </span><span style="color:#990066;" class="">V </span><span style="color:#4c4c4c;" class="">satisfies </span><span style="color:#990066;" class="">Object<br class=""></span><span style="color:#990066;" class=""> </span><span style="color:#4c4c4c;" class="">given </span><span style="color:#990066;" class="">E </span><span style="color:#4c4c4c;" class="">satisfies </span><span style="color:#990066;" class="">DirectedEdge</span><<span style="color:#990066;" class="">V</span>, <span style="color:#990066;" class="">E</span>> { … }</pre><div class="">I always found this very readable but with Swift’s ability to declare constraints between associated types of generic parameters this is even more important.</div><div class=""><br class=""></div><div class=""><br class=""></div><blockquote type="cite" class=""><div class=""><div class=""><span class="Apple-tab-span" style="white-space:pre">        </span>* How much effort did you put into your review? A glance, a quick reading, or an in-depth study?<br class=""></div></div></blockquote><div><br class=""></div>Read the proposal carefully and followed the discussion.</div><div><br class=""></div><div>-Thorsten</div><div><br class=""></div></body></html>