<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="">Especially the retroactive modeling aspect. I'm always happier than I have any right to be when I add a custom method to Int or String.<div class=""><br class=""></div><div class=""><div><blockquote type="cite" class=""><div class="">On Mar 2, 2016, at 8:32 PM, Chris Lattner via swift-users <<a href="mailto:swift-users@swift.org" class="">swift-users@swift.org</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><blockquote type="cite" class=""><div class=""><br class="Apple-interchange-newline">On Mar 2, 2016, at 12:29 PM, Robert S Mozayeni via swift-users <<a href="mailto:swift-users@swift.org" class="">swift-users@swift.org</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div class="" style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">Hello!<div class=""><br class=""></div><div class="">I’m going to give a relatively quick talk about Swift at my <a href="http://hackumbc.org/" class="">university’s hackathon</a> this weekend. It won’t so much be a “Learn to Write Swift” talk, but rather a shallow review of some of the cool aspects of Swift that might entice a programmer to learn Swift on their own.</div><div class=""><br class=""></div><div class="">I would appreciate suggestions for what kinds of features to talk about, as well as specific code scenarios to best display those features. I’m not limiting the features to those exclusive to Swift. For instance, many developers haven’t encountered Functional Programming, so I might throw some FP into the talk.</div><div class=""><br class=""></div><div class="">My current list of possible features to go over: </div></div></div></blockquote><div class=""><br class=""></div><div class="">I’m not sure what your student’s background is, but “extensions” are pretty cool, and atypical for the C family of languages.</div><div class=""><br class=""></div><div class="">-Chris</div><br class=""><blockquote type="cite" class=""><div class=""><div class="" style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div class=""><br class=""></div><div class="">- Type inference</div><div class="">- ARC</div><div class="">- Optionals</div><div class="">- Protocol Oriented Programming</div><div class="">- Enums (associated values; the ability to implement things like Optional/Result/Either)</div><div class="">- Pattern matching</div><div class="">- Functional features</div><div class="">- Tuples/multiple return values</div><div class="">- REPL</div><div class=""><br class=""></div><div class=""><br class=""></div><div class="">I’m trying to figure out how much of the talk I want to do in a Playground vs the online IBM Swift Sandbox. The latter, attendees can use to play with Swift regardless of their OS, and without having to install anything. Then again, playgrounds are really impressive. I might do a short demonstration on what Playgrounds can do, then switch to the IBM Sandbox so people can follow along with the subsequent examples.</div><div class=""><br class=""></div><div class="">Thank you!</div><div class=""><br class=""></div><div class=""><br class=""></div><div class="">Staying Swifty,</div><div class="">Robert Mozayeni</div><div class=""><br class=""></div></div>_______________________________________________<br class="">swift-users mailing list<br class=""><a href="mailto:swift-users@swift.org" class="">swift-users@swift.org</a><br class=""><a href="https://lists.swift.org/mailman/listinfo/swift-users" class="">https://lists.swift.org/mailman/listinfo/swift-users</a><br class=""></div></blockquote></div><br class="" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;"><span style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class="">_______________________________________________</span><br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><span style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class="">swift-users mailing list</span><br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><a href="mailto:swift-users@swift.org" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class="">swift-users@swift.org</a><br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><a href="https://lists.swift.org/mailman/listinfo/swift-users" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class="">https://lists.swift.org/mailman/listinfo/swift-users</a></div></blockquote></div><br class=""></div></body></html>