Hacker News new | ask | show | jobs
by ilrwbwrkhv 733 days ago
I really wish this now makes Swift worthwhile outside of the Apple ecosystem. A bit like Go.
3 comments

It was talked about in the Platform keynote (not the main keynote) - they're doing a lot of crossplatform work, off the top of my head:

* Enhancement of VSCode support (and any editor that integrates LSP)

* Increasing supported linux and windows platforms

* Increasing support for constrained environments (embeded? dunno)

* Continued support of community products like Vapor (web framework)

That would be great indeed. I’ve sayed this a few times, but i believe swift’s only chance to become mainstream is now, and only by growing outside of apple.
Why would that make it more worthwhile? What are the compelling reasons to use Swift instead of Go?
For example if you already know, and use, Swift because you are an app developer who’s been developing apps for iOS, iPadOS, or macOS, then improved cross-platform support would be very desirable.
Because it has much nicer ergonomics. Why would anyone create a modern language with nil.
Sum types is sufficient reason alone.
It's a better language.