<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="">This proposal looks good to me. &nbsp;I have been looking forward to more flexible generic arguments for a while.<div class=""><br class=""></div><div class="">I agree with previous commenters who prefer the option to leave off the angle brackets when all parameters have defaults.</div><div class=""><br class=""></div><div class="">The proposal specifically mentions that the syntax is inspired by that of function arguments. &nbsp;This is good, but I wonder if maybe we should draw further inspiration from function arguments and also add parameter labels for generic arguments. &nbsp;Both feel like low hanging fruit in the generics area (correct me if I’m wrong about that) and it would be great to see both enhancements make it into Swift 4.</div><div class=""><div class=""><br class=""><div><blockquote type="cite" class=""><div class="">On Jan 23, 2017, at 9:55 AM, Srđan Rašić via swift-evolution &lt;<a href="mailto:swift-evolution@swift.org" class="">swift-evolution@swift.org</a>&gt; wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class="">Hi Everyone,<div class=""><br class=""></div><div class="">I've opened a PR (<a href="https://github.com/apple/swift-evolution/pull/591" class="">https://github.com/apple/swift-evolution/pull/591</a>)&nbsp;proposing default generic arguments which I think would be nice addition to the language. They are also mentioned in "Generic manifesto".&nbsp;</div><div class=""><br class=""></div><div class="">The proposal is focusing around generic types. Generic functions are not coved by the proposal and I don't think that we need default generic arguments in generic functions as all the types are always part of the function signature so the compiler can always infer them. One corner case might be if using default argument values in which case support for default generic arguments in functions might be useful.</div><div class=""><br class=""></div><div class="">It would be great to hear your opinions and suggestions so I can refine the proposal.<br class=""></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>