I find rust much noisier, especially at its basics where you write “for item in items” instead of using iter()
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.