← Back to context

Comment by dagmx

3 hours ago

Swift is pretty good.

As a language, I really like it. It feels very much like a cousin to Rust with a few tradeoffs to be more ergonomic.

The standard library is pretty good but the extended ecosystem is not as strong outside of Apple platforms, though that is improving.

If the ecosystem improved, like this project here, it would probably be my go to language. Failing that it’s usually rust , Python, C# and C++ for me.

UI libraries outside of Apple frameworks is about as weak as all those other languages if you don’t have Qt bindings. Qt does have Swift bindings officially in the works though so that could change.

> It feels very much like a cousin to Rust with a few tradeoffs to be more ergonomic.

Rust can be just as ergonomic. It takes some minor boilerplate of course, since you're resorting to coding patterns that are somewhat unidiomatic - but not nearly as much as the likes of C# or Java.

  • I disagree that rust can be as ergonomic. I’ve been writing rust for longer than Swift , and there’s a lot of niceties in Swift.

    Default parameters, null shortcircuits, lazy static initializers, computed properties, ease of binding to C++, RC by default, defer.

    Both languages are great, but I don’t think they’re on the same ergonomic level by any means.