Remix.run Logo
h4x0rr 8 hours ago

Using explicit types is less fun though

ElFitz 7 hours ago | parent [-]

It even defeats the purpose of type inference.

mh2266 6 hours ago | parent [-]

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.