|
|
|
|
|
by jernfrost
2775 days ago
|
|
I am only vaguely familiar with Rust ownership model and last I programmed Swift was version 3.x. Does anyone have any thoughts on where Swift is going with ownership models in relation to Rust? What sort of different priorities will these languages set? It has been my impression that Rust seeks to be more of a tool for the more experienced programmer while Swift attempts to be more user friendly or appeal more to the average programmer. I would thus speculate that Swift team will never try to force Swift users to understand ownership models the way Rust developers have to. What do you think? Where can we expect this to be going? |
|
I would dispute this somewhat. I really think Swift was conceived to be a better C++. The stated "world domination" goal has always included systems programming. (I don't find it realistic personally that a single language can reasonably span from writing an OS to utility scripting, but that's been the pitch.) I would guess that, privately at least, Swift sees Rust as a competitor.
That said, the Swift core team does take learnability and what they call "progressive disclosure" seriously. They've emphasized that this particular feature should be something that most Swift users won't need to know or think about. They definitely do spend time and effort on people who are new to the language.
The other thing that may contribute to the impression that Swift is "less advanced" is simply its userbase. Its life started in GUI application development for Apple platforms and that's also key to its success -- iOS is hot right now. That's the majority of its deployment, and I think it will remain so for quite a while.
We iOS devs may be average or not, but most of the code we write is not high-performance mission-critical algorithm-laden wizardry, just grabbing some JSON off a REST endpoint and animating the information into a table view. ;)