<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto"><div>If I understand correctly we are speaking of class definitions inside functions, so this doesn't affect classes defined at the global scope, which are what the beginner will first be told. Teaching them about defining classes in other places would then wait until they know more about closure, scopes and variable capture.</div><div id="AppleMailSignature"><br></div><div id="AppleMailSignature">I would suggest treating a class defined within a function body the same way a function defined within a function body would be.<br><br><div class="" style="-webkit-text-size-adjust: auto;"><div class="" style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div class="" style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div class="" style="-webkit-text-stroke-width: initial; margin: 0px; line-height: normal; -webkit-text-stroke-color: rgb(7, 55, 99);"><div class="" style="color: rgb(7, 55, 99); font-family: Georgia; font-size: 13px; -webkit-text-stroke-width: initial; margin: 0px; line-height: normal;"><b class="">Guillaume DIDIER (ASP)</b></div><div class="" style="color: rgb(0, 0, 0); font-family: Georgia; font-size: 13px; -webkit-text-stroke-width: initial; margin: 0px; line-height: normal;"><i class=""><font class="" color="#073763">Section Escrime, 3ème Compagnie, </font><br class=""><font class="" color="#073763">Promotion </font><font class="" color="#ff2600">X 2014</font></i></div><div class="" style="color: rgb(0, 0, 0); font-family: Georgia; font-size: 13px; -webkit-text-stroke-width: initial; margin: 0px; line-height: normal;"><i class=""><font class="" color="#ff2600"><br class=""></font></i></div><div class="" style="margin: 0px; line-height: normal;"><br></div><div class="" style="color: rgb(7, 55, 99); font-family: 'Lucida Sans'; font-size: 12px; -webkit-text-stroke-width: initial; margin: 0px; line-height: normal; min-height: 15px;"><span class="" style="font-family: 'Century Gothic'; font-size: 13px; -webkit-text-stroke-width: initial;">—</span><i class=""></i></div><div class="" style="color: rgb(7, 55, 99); font-family: 'Century Gothic'; font-size: 11px; -webkit-text-stroke-width: initial; margin: 0px; line-height: normal;"><b class="">ÉCOLE POLYTECHNIQUE</b></div><div class="" style="color: rgb(7, 55, 99); font-family: 'Century Gothic'; font-size: 11px; -webkit-text-stroke-width: initial; margin: 0px; line-height: normal;"><a dir="ltr" href="x-apple-data-detectors://1/1" x-apple-data-detectors="true" x-apple-data-detectors-type="address" x-apple-data-detectors-result="1/1">91128 PALAISEAU CEDEX</a><br class=""><span class="" style="color: rgb(30, 73, 125); -webkit-text-stroke-color: rgb(30, 73, 125);">M.</span> <span class="" style="color: rgb(30, 73, 125); -webkit-text-stroke-color: rgb(30, 73, 125);"><a dir="ltr" href="tel:+33%207%C2%A070%2043%2018%2040" x-apple-data-detectors="true" x-apple-data-detectors-type="telephone" x-apple-data-detectors-result="1/2">+33 (</a></span><a dir="ltr" href="tel:+33%207%C2%A070%2043%2018%2040" x-apple-data-detectors="true" x-apple-data-detectors-type="telephone" x-apple-data-detectors-result="1/2">0</a><span class="" style="color: rgb(30, 73, 125); -webkit-text-stroke-color: rgb(30, 73, 125);"><a dir="ltr" href="tel:+33%207%C2%A070%2043%2018%2040" x-apple-data-detectors="true" x-apple-data-detectors-type="telephone" x-apple-data-detectors-result="1/2">)7</a></span><a dir="ltr" href="tel:+33%207%C2%A070%2043%2018%2040" x-apple-data-detectors="true" x-apple-data-detectors-type="telephone" x-apple-data-detectors-result="1/2"> 70 43 18 40</a><br class=""><a href="mailto:guillaume.didier@polytechnique.edu?subject=" class=""><span class="" style="line-height: normal; -webkit-text-stroke-color: rgb(71, 135, 255);">guillaume.didier@polytechnique.edu</span></a></div><div class="" style="color: rgb(71, 135, 255); font-family: 'Century Gothic'; font-size: 11px; -webkit-text-stroke-width: initial; margin: 0px; line-height: normal; -webkit-text-stroke-color: rgb(71, 135, 255);"><span class="" style="text-decoration: underline;"><a href="http://www.polytechnique.edu/" class="">www.polytechnique.edu</a></span></div><div class="" style="color: rgb(7, 55, 99); font-family: 'Century Gothic'; font-size: 13px; -webkit-text-stroke-width: initial; margin: 0px; line-height: normal;">—</div></div></div></div></div></div><div><br>Le 23 déc. 2016 à 23:49, David Sweeris via swift-evolution <<a href="mailto:swift-evolution@swift.org">swift-evolution@swift.org</a>> a écrit :<br><br></div><blockquote type="cite"><div><meta http-equiv="Content-Type" content="text/html charset=utf-8"><br class=""><div><blockquote type="cite" class=""><div class="">On Dec 23, 2016, at 1:37 PM, Xiaodi Wu <<a href="mailto:xiaodi.wu@gmail.com" class="">xiaodi.wu@gmail.com</a>> wrote:</div><div class=""><div dir="ltr" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: 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=""><div class="gmail_extra"><div class="gmail_quote"><div class=""><br class=""></div><div class="">This has been an idea brought up in the distant past about other features. The core team has said very clearly that they do not want "dialects" of Swift.</div></div></div></div></div></blockquote><br class=""></div><div>That puts the nail on it for me… if it’s already been rejected, I don’t want to rehash it.</div><div><br class=""></div><div>- Dave Sweeris</div></div></blockquote><blockquote type="cite"><div><span>_______________________________________________</span><br><span>swift-evolution mailing list</span><br><span><a href="mailto:swift-evolution@swift.org">swift-evolution@swift.org</a></span><br><span><a href="https://lists.swift.org/mailman/listinfo/swift-evolution">https://lists.swift.org/mailman/listinfo/swift-evolution</a></span><br></div></blockquote></body></html>