<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=""><div class="">Please respond to that email thread rather than this one. Thank you.</div><div class=""><br class=""></div><div class="">-- E</div><br class=""><div><blockquote type="cite" class=""><div class="">On Mar 7, 2017, at 7:25 PM, David Waite <<a href="mailto:david@alkaline-solutions.com" class="">david@alkaline-solutions.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><meta http-equiv="Content-Type" content="text/html charset=utf-8" class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">I don’t fully understand - are you saying to comment on the gist as if it were a discussion forum?<div class=""><br class=""></div><div class="">-DW</div><div class=""><br class=""><div class=""><blockquote type="cite" class=""><div class="">On Mar 7, 2017, at 1:25 PM, Erica Sadun 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=utf-8" class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class="">I've put together everything I have about cases and unwrapping here:</div><div class=""><br class=""></div><div class=""><a href="https://lists.swift.org/pipermail/swift-evolution/Week-of-Mon-20170306/033588.html" class="">https://lists.swift.org/pipermail/swift-evolution/Week-of-Mon-20170306/033588.html</a></div><div class=""><br class=""></div><div class="">So please move the discussion there. Thanks! -- E</div><div class=""><br class=""></div><br class=""><div class=""><blockquote type="cite" class=""><div class="">On Mar 6, 2017, at 8:47 PM, T.J. Usiyan <<a href="mailto:griotspeak@gmail.com" class="">griotspeak@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class="">I support the first part, removing `case let` in a switch. I actually prefer one let out front in many ways but I have a much stronger preference for eliminating a 'style' choice that dramatically impacts the interpretation of the code. Binding each value is more explicit, so I am fine with it winning.</div></div></blockquote><div class=""><br class=""></div><div class="">I've broken it down to its own problem/solution</div><br class=""><blockquote type="cite" class=""><div class=""><div dir="ltr" class=""><div class=""><br class=""></div><div class="">The `if case` stuff… I don't really agree with as much. </div></div></div></blockquote><div class=""><br class=""></div><div class="">I grant it's one of the things that would have gone down much better way earlier in Swift's development timeline, but that kept getting pushed forward again and again.</div><br class=""><blockquote type="cite" class=""><div class=""><div dir="ltr" class=""><div class=""><br class=""></div><div class="">TJ</div></div><div class="gmail_extra"><br class=""><div class="gmail_quote">On Mon, Mar 6, 2017 at 7:35 PM, Erica Sadun via swift-evolution <span dir="ltr" class=""><<a href="mailto:swift-evolution@swift.org" target="_blank" class="">swift-evolution@swift.org</a>></span> wrote:<br class=""><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word" class=""><div class="">Bug report filed with warning emitting request: </div><div class=""><br class=""></div><div class=""><a href="https://bugs.swift.org/browse/SR-4174" target="_blank" class="">https://bugs.swift.org/browse/<wbr class="">SR-4174</a></div><span class="HOEnZb"><font color="#888888" class=""><div class=""><br class=""></div><div class="">-- E</div></font></span><div class=""><div class="h5"><div class=""><br class=""></div><div class=""><blockquote type="cite" class=""><div class="">On Mar 1, 2017, at 1:58 PM, Pyry Jahkola <<a href="mailto:pyry.jahkola@iki.fi" target="_blank" class="">pyry.jahkola@iki.fi</a>> wrote:</div><br class="m_-585721093709060955Apple-interchange-newline"><div class=""><div style="word-wrap:break-word" class="">I guess I should also include the example where the user actually wanted the oldValue to be "x":<div class=""><br class=""></div><div class=""><div class=""><div class=""><font face="Menlo" class=""> <b class="">if case let</b> .two(newValue, value) = example, </font><span style="font-family:Menlo" class="">value == oldValue</span><span style="font-family:Menlo" class=""> { ... }</span></div></div></div><div class=""><div class=""><div class=""><font face="Menlo" class=""><br class=""></font></div><div class="">No surprises there, even if another conditional is required.</div><div class=""><br class=""></div><div class="">— Pyry</div></div></div><div class=""></div></div></div></blockquote></div></div></div></div><br class="">
<br class=""></blockquote></div><br class=""></div>
</div></blockquote></div><br class=""></div>_______________________________________________<br class="">swift-evolution mailing list<br class=""><a href="mailto:swift-evolution@swift.org" class="">swift-evolution@swift.org</a><br class=""><a href="https://lists.swift.org/mailman/listinfo/swift-evolution" class="">https://lists.swift.org/mailman/listinfo/swift-evolution</a><br class=""></div></blockquote></div><br class=""></div></div></div></blockquote></div><br class=""></body></html>