Re:Swift is a more convenient Rust
by mh2266 on Saturday January 31, 2026 @08:24PM
(#46842732)
It's been a while since I've Swifted but it was mostly with combinations of nested generics, lambdas, and literals. Annotating the type of the variable those were assigned to could improve performance a lot.
You don't need to add an annotation on `let foo = bar()` where bar is a function that returns `String` or whatever.
You don't need to add an annotation on `let foo = bar()` where bar is a function that returns `String` or whatever.