<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
<html>
<head>
<meta charset="utf-8">
<style>body{font-family:-apple-system,Helvetica,Arial,sans-serif;}blockquote{margin:0;padding:0 0 0 12px;border-left:1px solid #aaa;color:#aaa;}hr.unibox-forward{border:0;color:#888;background-color:#888;height:1px;}</style>
</head>
<body>
<div>Paul</div>
<div><br></div>
<div>The semicolon is actually needed still to avoid accidental multi-line statements. E.g. these functions behave differently:</div>
<div><br></div>
<div>func doNothing1() {</div>
<div>    break</div>
<div>    print(“This text gets printed”)</div>
<div>}</div>
<div>func doNothing2() {</div>
<div>    break;</div>
<div>    print(“This text isn’t printed”)</div>
<div>}</div>
<div><br></div>
<div>Until odd cases like this can be avoided, I think semicolons are still (though very rarely) necessary.</div>
<div><br></div>
<div class="unibox-signature"><span style="color: rgb(54, 61, 76);">Chris</span></div>
<div class="unibox-signature"><span style="color: rgb(54, 61, 76);"><br></span></div>
<div><br></div>
<blockquote type="cite" class="unibox-hidden">
<div>On Mar 17, 2016, at 3:25 PM, Paul Ossenbruggen &lt;possen@gmail.com&gt; wrote:</div>
<div><br></div>
<div style="font-family: -webkit-standard;">+1 I think that let people do whatever they want if i makes them happy when it makes the code less readable is not a good idea. I support the notion that semicolon should not be allowed at end of line. It does nothing to help readability of the code. If it does nothing, it should go. Swift code should be easy to read, and in this case clarity wins. We have to break the semicolon habit :-)<span class="Apple-converted-space"> </span>
</div>
<div style="font-family: -webkit-standard;"><br></div>
<div style="font-family: -webkit-standard;">Perhaps providing a warning fix-it which removes them from the end of all lines in the file. I suspect most cases the only reason people put it there is habit or they are converting old code from another language.</div>
<div style="font-family: -webkit-standard;"><br></div>
<div style="font-family: -webkit-standard;">- Paul</div>
</blockquote>
</body>
</html>