3 ms·
Was Swift really necessary? Would it really not have been possible to build iOS apps on something like JavaScript?
by pbreit 2y ago
Was Swift really necessary? Would it really not have been possible to build iOS apps on something like JavaScript?
- astrange 2y agoIt wouldn't be performant enough. Resist the urge to go as abstract as possible on a battery-powered device someone else is paying for.
- xanth 2y agoA low level language that's ergonomically interoperable with objective-c was probably the best choice.
- Decabytes 2y agoApple never set out to create Swift. Chris partner worked on it for fun in his spare time, and when he realized it could go somewhere he went through the channels to get it turned into an official project. With that being said it was tailor made to address important issues for Apple developed. For example, it has great interop with Objective-C which was a requirement to get it adopted, first at Apple, and then with the wider community. It is also built with safety and security in mind removing lots of undefined behavior and adding null safety. It is also statically typed while JavaScript isn’t. There are a whole host of other goodies that it has that make it better for Apple developers than just adopting JavaScript. Chris partner has lots of talks where he goes over the reasonings
- tonyedgecombe 2y ago>Chris partner Chris Lattner