<html><body><div id="edo-message"><div>Guard wouldn't work, because the "else" is usually on the same line as the last element.</div><div><br></div><div>Perhaps the answer is better commenting in IDEs? So if you select a region and hit CMD+/ Xcode will comment with /*...*/ instead of sticking a // in front of the whole line.</div><div><br></div><div>Perhaps it could auto-expand to the complete clause if you select most of a clause in a multi-clause condition?</div><div><br></div><div>Karl<br><br><div style="font-family: 'Helvetica Neue','Helvetica',Helvetica,Arial,sans-serif;font:'-apple-system-body';">Sent from my new <a href="https://itunes.apple.com/app/apple-store/id922793622?pt=814382&mt=8&ct=my_new_email">Email</a></div></div></div><div id="edo-original"><div><br><br><blockquote type="cite" style="margin:1ex 0 0 0;border-left:1px #ccc solid;padding-left:0.5ex;"><div>On Aug 19, 2016 at 1:21 am, <<a href="mailto:swift-evolution@swift.org">Rick Mann via swift-evolution</a>> wrote:<br><br></div><div><pre><br>> On Aug 17, 2016, at 18:11 , Ben Rimmington <<a dir="ltr" href="mailto:me@benrimmington.com" x-apple-data-detectors="true" x-apple-data-detectors-type="link" x-apple-data-detectors-result="2">me@benrimmington.com</a>> wrote:<br>> <br>> <br>>> On 18 Aug 2016, at 00:13, Rick Mann wrote:<br>>> <br>>> Is there any reason Swift can't allow a trailing comma in constructs like this:<br>>> <br>>> guard<br>>> let a = ...,<br>>> let b = ...,<br>>> let c = ...,<br>>> else<br>>> {<br>>> }<br>>> <br>>> doing so makes it a bit easier to rearrange lines, and is similar to the trailing comma allowed inside array and dictionary definitions:<br>>> <br>>> let a = [ 1, 2, 3, ]<br>> <br>> A similar proposal was rejected:<br>> <br>> <<a dir="ltr" href="https://lists.swift.org/pipermail/swift-evolution-announce/2016-May/000171.html" x-apple-data-detectors="true" x-apple-data-detectors-type="link" x-apple-data-detectors-result="4">https://lists.swift.org/pipermail/swift-evolution-announce/2016-May/000171.html</a>><br><br>Thanks. Hmm. The stated arguments seem to apply to tuples and parameter lists, not variable bindings.<br><br>-- <br>Rick Mann<br>rmann@latencyzero.com<br><br><br>_______________________________________________<br>swift-evolution mailing <a dir="ltr" href="mailto:listswift-evolution@swift.orghttps" x-apple-data-detectors="true" x-apple-data-detectors-type="link" x-apple-data-detectors-result="5">list</a><br><a dir="ltr" href="mailto:listswift-evolution@swift.orghttps" x-apple-data-detectors="true" x-apple-data-detectors-type="link" x-apple-data-detectors-result="5">swift-evolution@swift.org</a><br><a dir="ltr" href="mailto:listswift-evolution@swift.orghttps" x-apple-data-detectors="true" x-apple-data-detectors-type="link" x-apple-data-detectors-result="5">https</a>://lists.swift.org/mailman/listinfo/swift-evolution<br></pre></div></blockquote></div></div></body></html>