Re:Swift 6.3 Released
by qn9n on Thursday March 26, 2026 @02:04PM
(#47533722)
I find rust much noisier, especially at its basics where you write “for item in items” instead of using iter()
[ Parent
| on HN ]
Re:Swift 6.3 Released
by slopinthebag on Thursday March 26, 2026 @02:44PM
(#47534136)
Idk, I don't swift is objectively noisy but there is something about reading it that just hurts my brain. Stuff like
ForEach(vm.sorted(by: \.name)) { user in
row(for: user)
}
\. looks like a syntax error to me, wtf. Also, "in" instead of -> ??? .padding(.vertical, 4)
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. func sorted(by keyPath: KeyPath<User, String>) -> [User] {
users.sorted { $0[keyPath: keyPath] < $1[keyPath: keyPath] }
}
???Yeah I fully accept it's just a me problem. But I hate it haha.