My misalignment with Apple's love affair with Swift
&gt; So now contrast that to Swift. First of all: Which question did it desire to answer?<p>From Swift.org:
Swift makes it easy to write software that is incredibly fast and safe by design. Our goals for Swift are ambitious: we want to make programming simple things easy, and difficult things possible.<p>&gt; It should scale from App&#x2F;UI language down to system language.<p>I don&#x27;t see how say Go can be a system language and Swift can&#x27;t.<p>Much of Apple&#x27;s investment has been around making App and Framework development more productive on their platforms, but Swift is open and other companies like IBM have been focused on things like Web frameworks.<p>&gt;It should inter-op with existing Foundation and Cocoa, but still bring its own wide reaching standard library, adding a lot of duplication.
I assume they mean the standard Swift package as the standard library, since they listed Foundation separate. Swift is <i>tiny</i>, basically holding core types like Int, String, Optional, and pointers, Collections (Dictionary, Set, and Array), ranges like 1..&lt;10, and essential common protocols like Equatable and Hashable.<p>It isn&#x27;t until you get to foundation that you get things like I&#x2F;O &#x2F; networking or binary data types.<p>&gt; It is functional, object-oriented and protocol oriented all at the same time.<p>Several of the languages listed in the article as being above as positive (like Ruby) are also multi-paradigm. Swift is hardly a functional language, it just has functional influences - like nearly <i>all</i> the languages listed.<p>&gt; It wants to be strongly typed, but at the same time so convenient in type inference, that it falls over its own feet while trying to grasp simple expressions, and they become too complex to manage. By design.<p>Since there wasn&#x27;t an example given, all I can really say is there&#x27;s nothing that <i>requires</i> you to use type inference. My experience from multiple languages is that usually such an expression is wrong, and the compiler cannot figure out any suggestions on how to fix it because a broken expression doesn&#x27;t give any type inference hints. A dynamic language would just let it crash and burn at runtime, which (if you have a test suite capturing the issue) is such a different process for debugging from fixing type inference at compile-time that they are hard to compare.<p>&gt; It is compiled and static, but emphasized the REPL and playground face that makes it want to look like a great scripting solution. Which it isn&#x27;t.<p>REPL and Playgrounds are both for experimentation, not necessarily for scripting. You can do command-line swift scripts, but generally the compiler makes them a bit heavyweight for many things.<p>&gt; It seems to have been driven by the needs of the compiler and the gaps that needed to be filled for the static analyzer. Those seem to have been super-charged instead of catering to app developer&#x27;s actual needs: efficient, hassle free, productive (iOS) App development.<p>Can&#x27;t say much here vs having a computer analyze your code is meant to be a boon, not a hinderance. My experience is that now when I write Java projects I wish I could get back the expressiveness, performance, and personal productivity I have writing Swift code.<p>&gt; It is meant offer progressive disclosure and be simple, to be used in playgrounds and learning. At the same time learning and reading through the Swift book and standard library is more akin to mastering C++. It is quite unforgiving, harsh, and complex.<p>If nothing else, someone is underestimating the effort of mastering C++.