<div dir="ltr">Interesting looking features from this thread on Reddit: <a href="http://www.reddit.com/r/programming/comments/274t5s/apple_swift_programming_language_unveiled">http://www.reddit.com/r/programming/comments/274t5s/apple_swift_programming_language_unveiled</a><div>
<br></div><div><div>Statically typed with type inference.</div><div>Generics.</div><div>Closures.</div><div>No exceptions.</div><div>Extension methods.</div><div>Properties (syntax similar to C#), including lazy properties with the "@lazy" annotation.</div>
<div>Functions, methods and type (static) methods.</div><div>Support for observers (with "willSet" and "didSet"). Interesting to see the observer pattern baked in a language although I'm more partial to event buses for this kind of thing.</div>
<div>Enums.</div><div>Classes and structures (structures have restrictions regarding inheritance and other things).</div><div>For and while loops (statements, not expressions).</div><div>"mutating" keyword.</div>
<div>Named parameters.</div><div>Deinitializers (finalizers).</div><div>Protocols (interfaces).</div><div>Optional chaining with "a?.b?.c" and forced dereference with "!."".</div><div>Convenient "assign and test": "if let person = findPerson() ...".</div>
<div>Type casting with "is", down casting with "as?" (combines nicely with the "let" syntax. Ceylon does it right too).</div></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">
On Mon, Jun 2, 2014 at 8:26 PM, Tim Armstrong <span dir="ltr"><<a href="mailto:tim.g.armstrong@gmail.com" target="_blank">tim.g.armstrong@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr"><div>We had an off-list thread about this - the site went down due to load pretty soon after it announced and only got back online thanks to David Kelly moving it to a bunch of AWS servers.<br><br></div>- Tim<br>
</div><div class="gmail_extra"><br><br><div class="gmail_quote"><div><div class="h5">On Mon, Jun 2, 2014 at 8:03 PM, Scott Krieder <span dir="ltr"><<a href="mailto:skrieder@iit.edu" target="_blank">skrieder@iit.edu</a>></span> wrote:<br>
</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5"><div dir="ltr"><a href="http://swift-lang.org" target="_blank">swift-lang.org</a> is probably worth a lot of money now!<div>
<br></div><div><a href="http://www.cnet.com/news/apples-new-swift-coding-language-hopes-to-lock-down-errors/" target="_blank">http://www.cnet.com/news/apples-new-swift-coding-language-hopes-to-lock-down-errors/</a><span><font color="#888888"><br clear="all">
<div><br></div>-- <br><font face="Times" size="3">Scott J. Krieder<br></font><div><div><font face="Times" size="3">C: <a href="tel:419-685-0410" value="+14196850410" target="_blank">419-685-0410</a><br></font><div><font face="Times" size="3">E: <a href="mailto:skrieder@iit.edu" target="_blank">skrieder@iit.edu</a><br>
</font><div><font face="Times" size="3"><a href="http://datasys.cs.iit.edu/~skrieder/" target="_blank">http://datasys.cs.iit.edu/~skrieder/</a></font></div></div></div></div>
</font></span></div></div>
<br></div></div>_______________________________________________<br>
Swift-devel mailing list<br>
<a href="mailto:Swift-devel@ci.uchicago.edu" target="_blank">Swift-devel@ci.uchicago.edu</a><br>
<a href="https://lists.ci.uchicago.edu/cgi-bin/mailman/listinfo/swift-devel" target="_blank">https://lists.ci.uchicago.edu/cgi-bin/mailman/listinfo/swift-devel</a><br>
<br></blockquote></div><br></div>
<br>_______________________________________________<br>
Swift-devel mailing list<br>
<a href="mailto:Swift-devel@ci.uchicago.edu">Swift-devel@ci.uchicago.edu</a><br>
<a href="https://lists.ci.uchicago.edu/cgi-bin/mailman/listinfo/swift-devel" target="_blank">https://lists.ci.uchicago.edu/cgi-bin/mailman/listinfo/swift-devel</a><br>
<br></blockquote></div><br></div>