Comment by slopinthebag
6 hours ago
Swift truly is one of the languages of all time. I started a mobile app with the UI built in Swift and the core in Rust. The amount of implicit and hidden behaviour, magical fields being generated on objects because of certain annotations, the massive amount of @decorators...it's too much. I'm going to have an LLM generate the SwiftUI and touch as little of it as possible.
It's also strange because before I learned Swift, I heard about how beautiful it is but I find it much noisier than Rust.
>I heard about how beautiful it is
This used to be the case around Swift 4, but since then they've added so many features and keywords to the language. Now the simplicity and elegance is gone.
Also it seems like there was a marked change in the culture of Swift. It somehow attracted a lot of the "ackchyually" crowd which resulted in a lot of massively complicated features. I liked to occasionally browse the evolution docs and they got more and more complex over time.
I find rust much noisier, especially at its basics where you write “for item in items” instead of using iter()
Idk, I don't swift is objectively noisy but there is something about reading it that just hurts my brain. Stuff like
\. looks like a syntax error to me, wtf. Also, "in" instead of -> ???
I also really dislike how you can leave off the type name, meaning you never actually know what that Type is unless you literally inspect the signature of the caller.
???
Yeah I fully accept it's just a me problem. But I hate it haha.
What are you using for rust-swift interop?
uniffi