I'm an iOS developer deeply familiar with Swift and on the path of learning ML. The irritation with "import Foundation" is understandable. Foundation is, wait for it, the Foundation of Objective-C programming and development for the iPhone. It's a library Swift makes use of and needs to inter-op with due to legacy concerns for iOS and Mac developers.
It's not an inherent part of Swift the language, and efforts like those at Google and the open source development of Swift can develop more modern and suitable replacements for those libraries.
I like python, but man I really don't want to make large systems in it. Swift is a great language, and imo the biggest thing holding it back is that it's intertwined with a lot of Apple code. But it doesn't need to stay that way, and for that reason I applaud the efforts to move it beyond just an "app creation" language.
It's not an inherent part of Swift the language, and efforts like those at Google and the open source development of Swift can develop more modern and suitable replacements for those libraries.
I like python, but man I really don't want to make large systems in it. Swift is a great language, and imo the biggest thing holding it back is that it's intertwined with a lot of Apple code. But it doesn't need to stay that way, and for that reason I applaud the efforts to move it beyond just an "app creation" language.