<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="">There are two different topics here, and I’d suggest exploring them separately.</div><div class=""><br class=""></div><div class="">- The semicolon within a line is a expressivity feature.</div><div class="">- The semicolon at the end of the line is accepted, but generally ignored.</div><div class=""><br class=""></div><div class="">Most people seem to be focusing on the second one. IMO, I think that it adds value to the language for people coming from semi-colon oriented languages or bouncing between multiple languages (that muscle memory takes awhile to break). OTOH, it is just syntactic noise (along with redundant parens in conditions and many other things), and so having a warning (probably opt-in) for it would make sense to me.</div><div class=""><br class=""></div><div class="">-Chris</div><div class=""><br class=""><div><blockquote type="cite" class=""><div class="">On Dec 14, 2015, at 10:55 AM, Colin Cornaby 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=""><div class="">It does seem odd there is a large focus on removing C style language features from Swift, but that the semi colon is still around.</div><div class=""><br data-mce-bogus="1" class=""></div><div class="">I'd be in favor of making them invalid syntax on single statement lines. It reduces confusion/code style arguments. I've stopped using them in Swift. They don't do anything on single statement lines, why bother?</div><div class=""><br class="">On Dec 14, 2015, at 10:04 AM, Arthur Ariel Sabintsev via swift-evolution <<a href="mailto:swift-evolution@swift.org" class="">swift-evolution@swift.org</a>> wrote:<br class=""><br class=""></div><div class=""><blockquote type="cite" class=""><div class="msg-quote"><div dir="ltr" class="">I'm also game for making them invalid syntax. <div class=""><br class=""></div><div class="">The only time I've seen `;` in my code is from my old Obj-C habit.</div></div><br class=""><div class="gmail_quote"><div dir="ltr" class="">On Mon, Dec 14, 2015 at 12:25 PM Austin Zheng via swift-evolution <<a href="mailto:swift-evolution@swift.org" data-mce-href="mailto:swift-evolution@swift.org" class="">swift-evolution@swift.org</a>> wrote:<br class=""></div><blockquote class="gmail_quote" style="margin: 0 0 0 0.8ex; border-left: 1px #ccc solid; padding-left: 1ex;" data-mce-style="margin: 0 0 0 0.8ex; border-left: 1px #ccc solid; padding-left: 1ex;">Semicolons are already optional at the end of lines and only required to separate multiple statements on the same line (and for C for loops, but changing the grammar of those or removing them is a different topic.<br class=""> <br class=""> If your proposal is to make a semicolon at the end of a single line invalid syntax, that's fine with me, although it seems like an unnecessarily small change to the grammar (and something better handled by a linter). If your proposal is to remove the semicolon as a way to separate multiple statements on the single line, then -1.<br class=""> <br class=""> Austin<br class=""> <br class=""> > On Dec 13, 2015, at 6:12 AM, João Nunes via swift-evolution <<a href="mailto:swift-evolution@swift.org" data-mce-href="mailto:swift-evolution@swift.org" class="">swift-evolution@swift.org</a>> wrote:<br class=""> ><br class=""> > Hi,<br class=""> ><br class=""> > I submitted a PR with a proposal to remove the swift end of line semicolons.<br class=""> ><br class=""> > It was rejected because i didn't discuss it here. So here i'm discussing it :)<br class=""> ><br class=""> > My proposal is simple: remove the semicolons in the end of lines.<br class=""> > It isn't needed and makes the code ugly.<br class=""> > It must be decided wether to use it or not for every project we start in the coding style.<br class=""> ><br class=""> > What do you think?<br class=""> ><br class=""> > João Nunes<br class=""> ><br class=""> ><br class=""> > Sent from my iPhone<br class=""> > _______________________________________________<br class=""> > swift-evolution mailing list<br class=""> > <a href="mailto:swift-evolution@swift.org" data-mce-href="mailto:swift-evolution@swift.org" class="">swift-evolution@swift.org</a><br class=""> > <a href="https://lists.swift.org/mailman/listinfo/swift-evolution" rel="noreferrer" data-mce-href="https://lists.swift.org/mailman/listinfo/swift-evolution" class="">https://lists.swift.org/mailman/listinfo/swift-evolution</a><br class=""> <br class=""> _______________________________________________<br class=""> swift-evolution mailing list<br class=""> <a href="mailto:swift-evolution@swift.org" data-mce-href="mailto:swift-evolution@swift.org" class="">swift-evolution@swift.org</a><br class=""> <a href="https://lists.swift.org/mailman/listinfo/swift-evolution" rel="noreferrer" data-mce-href="https://lists.swift.org/mailman/listinfo/swift-evolution" class="">https://lists.swift.org/mailman/listinfo/swift-evolution</a><br class=""></blockquote></div><div dir="ltr" class="">-- <br class=""></div><div dir="ltr" class="">Best,<div class=""><br class=""></div><div class="">Arthur / <a href="http://sabintsev.com/" data-mce-href="http://Sabintsev.com" class="">Sabintsev.com</a></div></div><img src="https://u2002410.ct.sendgrid.net/wf/open?upn=OFgvmg1J6naJevMotmPmRgzA4p1gcL5s2O89Xj3c0DRJma2WItJtI0x5s76vEWC9v-2BljUear5ofEe57j0g4mU4CodrJGN8Pr-2BnxYf-2FPnDSM-2FQ05UP4gbk-2Bc2ud4-2B7wuczxRQPzxhLLkX4bBydR8Fr4XqMM4btNOm7-2BGBUKKzQ6iGuCaEwrV-2Brokz1WU7KcdlVwW5lmvhakLeJLzRlkI-2FvUd5djrC7wkStCClWqQ7jpE-3D" alt="" width="1" height="1" border="0" style="height: 1px; width: 1px; border-width: 0; padding: 0; margin: 0;" data-mce-src="https://u2002410.ct.sendgrid.net/wf/open?upn=OFgvmg1J6naJevMotmPmRgzA4p1gcL5s2O89Xj3c0DRJma2WItJtI0x5s76vEWC9v-2BljUear5ofEe57j0g4mU4CodrJGN8Pr-2BnxYf-2FPnDSM-2FQ05UP4gbk-2Bc2ud4-2B7wuczxRQPzxhLLkX4bBydR8Fr4XqMM4btNOm7-2BGBUKKzQ6iGuCaEwrV-2Brokz1WU7KcdlVwW5lmvhakLeJLzRlkI-2FvUd5djrC7wkStCClWqQ7jpE-3D" data-mce-style="height: 1px; width: 1px; border-width: 0; padding: 0; margin: 0;" class=""><div class="_stretch"><span class="body-text-content">_______________________________________________<br class="">swift-evolution mailing list<br class=""><a href="mailto:swift-evolution@swift.org" data-mce-href="mailto:swift-evolution@swift.org" class="">swift-evolution@swift.org</a><br class=""><a href="https://lists.swift.org/mailman/listinfo/swift-evolution" data-mce-href="https://lists.swift.org/mailman/listinfo/swift-evolution" class="">https://lists.swift.org/mailman/listinfo/swift-evolution</a><br class=""></span></div></div></blockquote></div>
<img src="https://u2002410.ct.sendgrid.net/wf/open?upn=RC5Cq0zAxCHc1sM9Uy3-2BojrrUAw-2F96zH69NULNHPvCuoSceEcQ-2FSWw-2BTmY6iTyP7TomTnLckJaeH-2FdE6BgNcy3PEM7dCfJA0AmNAsJUcpEky5E4A4WRXtmFOdEu5uLdd5loftDS2t7Jiy5Trab6PKJ4jJUF0DUcu8M3jevfrK9FgIerdZrN2HRdWFZzZ6gOCrcqG-2BSkLI1k43QHlxEe2E7wZYwh1YdYLsYWEsyu2j50-3D" alt="" width="1" height="1" border="0" style="height:1px !important;width:1px !important;border-width:0 !important;margin-top:0 !important;margin-bottom:0 !important;margin-right:0 !important;margin-left:0 !important;padding-top:0 !important;padding-bottom:0 !important;padding-right:0 !important;padding-left:0 !important;" 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="">https://lists.swift.org/mailman/listinfo/swift-evolution<br class=""></div></blockquote></div><br class=""></div></body></html>