4 ms·
For me there's a sweet spot that is meant for languages like Java, C# and now Swift. For me at least Swift is the natural successor of this family of language f
by oscargrouch 5y ago
For me there's a sweet spot that is meant for languages like Java, C# and now Swift.
For me at least Swift is the natural successor of this family of language for a bunch of reasons.
I would'nt create a program in C++ or Rust if i can do it in Swift, because its much more pleasant, productive and safer (while i love the level of control and speed C++ and Rust gives you).
I would just go for C++ or Rust if the domain i'm solving require this. Even because for some problem domains there are very few languages you can use. And i'm glad that now we have more options on this space like Rust and Zig.
But for business kind of languages, applications with common business logic, for me at least there's nothing better than Swift.
Script languages can be even better at ergonomics and productivity, but they tend to have a price that its only perceived later in regards to efficiency and the lack of a proper type system.
On the server side unfortunately, Swift is too late to the party and Go is already eating the Java cake. But i see a tremendous potential in Swift for user facing applications.
- The_rationalist 5y agoThe sweet spot you're looking for is Kotlin.
- liuliu 5y agoBoth are in the same sweet spot. But both are big languages with a lot of features and requires a lot of support. Luckily, so far, they are supported by big companies (JetBrain is no Apple, but has a good track record of supporting this kind of things). More interesting things are Elixir and Julia, which arguably are in the similar sweet spot (Elixir may be closer to that than Julia).