3 ms·
Agreed. I'm not sure why you were downvoted. If we are speaking strictly about iOS, you are 100% right. Swift is king. Swift is set to replace Objective-C and
by autoreleasepool 11y ago
Agreed. I'm not sure why you were downvoted. If we are speaking strictly about iOS, you are 100% right. Swift is king.
Swift is set to replace Objective-C and it has risen in popularity and adoption at an insanely rapid pace.
Everyone is adding swift to their code base. Our watch-client for example, is written exclusively in Swift. We have a ton of C++ code too. It's not a problem because it's all wrapped in an Objective-C API anyways.
Besides, Swift brings a lot more to the table than just saner syntax and less boiler plate. It also includes: a good type system, optionals, functional constructs, excellent OOP support, excellent error handling, scripting support, a repl, a great intermediate language in SIL, cross-platform (freeBSD soon) native code.
Sure, it's not purely functional by any means, but it's neither is Rust. It's a good (not perfect) multi-paradigm language that can and will eat up a lot of the domain space C++/Go/Rust share for native applications.
I even predict it will go a step further. Swift will, in my prediction, eventually allow for safe, zero-overead memory management abstractions similar to Rust (and to a lesser extent C++). This will make it a head on competitor with Rust and C++ for virtually all their use cases (except legacy support).
My speculations is based on comments from the language's creator expressing desire for these features in Swift [0] [1].
[0] https://www.reddit.com/r/rust/comments/3vadg8/swift_is_open_source/cxnu2kk https://www.reddit.com/r/rust/comments/3vadg8/swift_is_open_...
[1] https://lists.swift.org/pipermail/swift-evolution/Week-of-Mon-20151214/003494.html https://lists.swift.org/pipermail/swift-evolution/Week-of-Mo...