<div dir="ltr">Yes! As a high school CS teacher, agreed 100%. This is what makes Racket / Scheme such a great introductory language: there is really only one type of syntax mistake you can make, and it&#39;s having mismatched parens (something that the IDE makes it easy for students to see). When students move on to Java for AP, in come the errors. I&#39;ve seen students give up on CS because they can never compile their code -- in one case, for example, a student was putting semicolons after every if statement, for loop, while loop, and method definition, before the opening curly brace. (In my experience, syntax presents a bigger hurdle than type errors.)<div><br></div><div>Swift is not, primarily, a teaching language <i>for beginners</i>. (It makes a great teaching language for intermediate and advanced students, or students who want to learn about fancy type systems.) Its type system is extremely powerful but also beyond the scope of an introductory programming course. That said, playgrounds <i>are</i> very cool and help alleviate some of the frustration of writing a long program and having it not compile.</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Dec 6, 2015 at 1:42 PM, Paul Cantrell via swift-evolution <span dir="ltr">&lt;<a href="mailto:swift-evolution@swift.org" target="_blank">swift-evolution@swift.org</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class=""><div>
 <blockquote type="cite">
  <span style="font-family:HelveticaNeue;display:inline!important">I think Python&#39;s biggest appeal to new programmers is the fact that it has such a great standard library</span>
 </blockquote>
 <br>
</div>
</span><div>
 This is not the case, at least in my teaching experience.
</div>
<div>
 <br>
</div>
<div>
 One of the largest hurdles for new programmers, and the one that differentiates beginning languages more than any other, is compiler strictness. This includes both syntax and static type checking.
</div>
<div>
 <br>
</div>
<div>
 We easily forget how hard learning syntax is: to see every piece of punctuation as significant, to read code as a parse tree, to think inside the box of the language’s type system. Programmers in their first months easily spend 50% of the time getting their code to compile, usually more like 80%.
</div>
<div>
 <br>
</div>
<div>
 The problem with compile-time strictness of any kind is that the compiler won’t do _anything_ until _everything_ compiles. I’ve seen this drive beginners to burnout, even drive them away from CS altogether. (To help calibrate your thinking about just how much we’ve forgotten that we learned: eons and eons ago, when my department taught its intro courses in Pascal and C++, the main first-year hurdle was not dealing with unsafe pointers, but knowing where to put the semicolons. Semicolons!)
</div>
<div>
 <br>
</div>
<div>
 When you don’t understand what a failure looks like, it’s tremendously helpful to be able to actually run the code and see the failure happen. Having the language say “this can’t possibly work so I won’t run it” is not helpful to beginners; it’s just bottled frustration. Having the language say “it worked until I got here, at which point this happened” is infinitely more helpful.
</div>
<div>
 <br>
</div>
<div>
 <div>
  The biggest hurdle to a beginning programmer is how _stupid_ programming makes one feel. We experience programmers are all used to this. Beginners are not. Their successes are rarer, the obstacles more daunting. Every stumble feels intensely personal. Anything that makes success more incremental and more self-discoverable helps.
 </div>
 <div>
  <br>
 </div>
</div>
<div>
 • • •
</div>
<div>
 <br>
</div>
<div>
 You might think at this point that I’m arguing in favor of the “no types to compete with Python” mode, but I’d vote against it.
</div>
<div>
 <br>
</div>
<div>
 The ideal beginner language has a flexible, forgiving syntax that rewards guessing; the least compile-time type checking possible; and very clear error messages (both compiler and runtime). On all three counts, this sounds very far from Swift today. Better error messages would be good for all of us, but the other two just don’t sound like Swift.
</div>
<div>
 <br>
</div>
<div>
 <font face="HelveticaNeue">Good beginner languages reward exploration by empirical experimentation. Good professional development languages reward clarity of intent. Those two things are often in tension, and Swift’s core aesthetic clearly lands on the side of the second.</font>
</div>
<div>
 <br>
</div>
<div>
 <div>
  Is making it a good language for new beginners truly a design goal of Swift? I don’t think it should be. It _does_ seem like an excellent design goal to keep the language as simple, approachable, and learnable as it can be within its aesthetic.
 </div>
 <div>
  <br>
 </div>
</div>
<div>
 Cheers,
</div>
<div>
 <br>
</div>
<div>
 Paul
</div>
<div>
 <br>
</div>
<div>
 P.S. The Bret Victor article that describes the thinking behind playgrounds has some oustanding ideas on making languages more learnable: 
 <a href="http://worrydream.com/#!/LearnableProgramming" target="_blank">http://worrydream.com/#!/LearnableProgramming</a>
</div>
<div>
 <br>
</div>
<div>
 <div>
  –––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––
 </div>
 <div>
  <a href="https://innig.net" target="_blank">https://innig.net</a> • @inthehands • 
  <a href="http://siestaframework.com/" target="_blank">http://siestaframework.com/</a>
 </div>
</div><div><div class="h5">
<div>
 <br>
</div>
<div>
 <br>
</div>
<div>
 <blockquote type="cite">
  <div>
   On Dec 5, 2015, at 6:13 PM, Austin Zheng via swift-evolution &lt;
   <a href="mailto:swift-evolution@swift.org" target="_blank">swift-evolution@swift.org</a>&gt; wrote:
  </div>
  <br>
  <div>
   
   <div style="word-wrap:break-word">
    No, I don&#39;t. I think Python&#39;s biggest appeal to new programmers is the fact that it has such a great standard library, making it really easy to do whatever you want to do without figuring out how to find or add in external dependencies.
    <div>
     <br>
    </div>
    <div>
     Anyways, mistyped Python code still breaks, it just breaks at runtime instead of compile time. In fact, I&#39;d argue that this is even less beginner friendly, since you might write a function that works with some inputs and then inexplicably breaks with others.
    </div>
    <div>
     <div>
      <div>
       <br>
      </div>
      <div>
       Austin
       <br>
       <div>
        <br>
        <div>
         <blockquote type="cite">
          <div>
           On Dec 5, 2015, at 4:09 PM, Amir Michail &lt;
           <a href="mailto:a.michail@me.com" target="_blank">a.michail@me.com</a>&gt; wrote:
          </div>
          <br>
          <div>
           
           <div style="word-wrap:break-word">
            <br>
            <div>
             <blockquote type="cite">
              <div>
               On Dec 5, 2015, at 7:05 PM, Austin Zheng via swift-evolution &lt;
               <a href="mailto:swift-evolution@swift.org" target="_blank">swift-evolution@swift.org</a>&gt; wrote:
              </div>
              <br>
              <div>
               ml&gt;
               
               <div style="word-wrap:break-word">
                <div>
                 I disagree with the idea that a type system is too much of a hurdle for beginner programmers to overcome.
                </div>
               </div>
              </div>
             </blockquote>
             <div>
              <br>
             </div>
             <div>
              Don’t you think that Python currently provides a better introduction to programming due to its simplicity?
             </div>
             <br>
             <blockquote type="cite">
              <div>
               <div style="word-wrap:break-word">
                <div>
                 <br>
                </div>
                <div>
                 Austin
                </div>
                <br>
                <div>
                 <blockquote type="cite">
                  <div>
                   On Dec 5, 2015, at 4:01 PM, Kevin Lundberg via swift-evolution &lt;
                   <a href="mailto:swift-evolution@swift.org" target="_blank">swift-evolution@swift.org</a>&gt; wrote:
                  </div>
                  <br>
                  <div>
                   
                   <div dir="auto">
                    <div>
                     This is somewhat possible today on Apple platforms with AnyObject. You can call any objc-visible method on AnyObject and it will compile, and the return type will also be AnyObject (I don&#39;t recall if the return type is optional as well or not). This doesn&#39;t work with value types, but neither does id in objc.
                    </div>
                    <div>
                     <br>
                    </div>
                    <div>
                     Having a more complete lax typed mode similar to Python or php I think is of limited usefulness, would add too much complexity to the language, and yield too much uncertainty about any given piece of swift code. 
                     <br>
                     <br>--
                     <div>
                      Kevin Lundberg
                     </div>
                    </div>
                    <div>
                     <br>On Dec 5, 2015, at 6:50 PM, Adrian Kashivskyy via swift-evolution &lt;
                     <a href="mailto:swift-evolution@swift.org" target="_blank">swift-evolution@swift.org</a>&gt; wrote:
                     <br>
                     <br>
                    </div>
                    <blockquote type="cite">
                     <div>
                      I can&#39;t believe I&#39;m seeing a proposal to remove type safety, one of the fundamental features of Swift...
                      <br>
                      <div> 
                       <div style="font-family:Helvetica;font-size:12px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">
                        <br>Regards,
                       </div>
                       <div style="font-family:Helvetica;font-size:12px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">
                        Adrian Kashivskyy
                       </div>
                       <div style="font-family:Helvetica;font-size:12px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">
                        iOS Developer at Netguru
                       </div> 
                      </div> 
                      <br>
                      <div>
                       <blockquote type="cite">
                        <div>
                         Wiadomość napisana przez Amir Michail via swift-evolution &lt;
                         <a href="mailto:swift-evolution@swift.org" target="_blank">swift-evolution@swift.org</a>&gt; w dniu 05.12.2015, o godz. 20:51:
                        </div>
                        <br>
                        <div>
                         <div>
                          <p>Python is still easier than Swift for beginning programmers. But maybe such a mode can allow Swift to be used by beginners also? <em>____________________________________________</em>_ swift-evolution mailing list <a href="mailto:swift-evolution@swift.org" target="_blank">swift-evolution@swift.org</a> <a href="https://lists.swift.org/mailman/listinfo/swift-evolution" target="_blank">https://lists.swift.org/mailman/listinfo/swift-evolution</a></p>  
                         </div> 
                        </div>
                       </blockquote>
                      </div>
                      <br>  
                     </div>
                    </blockquote>
                    <blockquote type="cite">
                     <div>
                      <span>_______________________________________________</span>
                      <br>
                      <span>swift-evolution mailing list</span>
                      <br>
                      <span><a href="mailto:swift-evolution@swift.org" target="_blank">swift-evolution@swift.org</a></span>
                      <br>
                      <span><a href="https://lists.swift.org/mailman/listinfo/swift-evolution" target="_blank">https://lists.swift.org/mailman/listinfo/swift-evolution</a></span>
                      <br>
                     </div>
                    </blockquote>  
                   </div> _______________________________________________
                   <br>swift-evolution mailing list
                   <br>
                   <a href="mailto:swift-evolution@swift.org" target="_blank">swift-evolution@swift.org</a>
                   <br>
                   <a href="https://lists.swift.org/mailman/listinfo/swift-evolution" target="_blank">https://lists.swift.org/mailman/listinfo/swift-evolution</a>
                   <br>
                  </div>
                 </blockquote>
                </div>
                <br>  
               </div> --r‡bž Úḟîẁ
               <br>‰íz{CŠÊhĠ+bḃx§–)Ŷ_______________________________________________
               <br>swift-evolution mailing list
               <br>
               <a href="mailto:swift-evolution@swift.org" target="_blank">swift-evolution@swift.org</a>
               <br>
               <a href="https://lists.swift.org/ma" target="_blank">https://lists.swift.org/ma</a>
              </div>
             </blockquote>
            </div>
            <br>
           </div>
          </div>
         </blockquote>
        </div>
        <br>
       </div>
      </div>
     </div>
    </div>  
   </div> _______________________________________________
   <br>swift-evolution mailing list
   <br>
   <a href="mailto:swift-evolution@swift.org" target="_blank">swift-evolution@swift.org</a>
   <br><a href="https://lists.swift.org/mailman/listinfo/swift-evolution" target="_blank">https://lists.swift.org/mailman/listinfo/swift-evolution</a>
   <br>
  </div>
 </blockquote>
</div>
<br>   
</div></div><div style="margin-top:10px;font-size:12px;font-family:Helvetica,Arial;color:#999">
 Untracked with 
 <a style="color:#999" href="https://trackbuster.com/?sig" target="_blank">Trackbuster</a>
</div><br>_______________________________________________<br>
swift-evolution mailing list<br>
<a href="mailto:swift-evolution@swift.org">swift-evolution@swift.org</a><br>
<a href="https://lists.swift.org/mailman/listinfo/swift-evolution" rel="noreferrer" target="_blank">https://lists.swift.org/mailman/listinfo/swift-evolution</a><br>
<br></blockquote></div><br></div>