4 ms·
In practice, type inference for return types works fine for the work I do (iOS development). Initializers are blindingly obvious anyway, and other functions are
by bartvk 6y ago
In practice, type inference for return types works fine for the work I do (iOS development). Initializers are blindingly obvious anyway, and other functions are often members of an object or a struct. There are barely any bare functions.
- heavenlyblue 6y agoCan’t members return other objects?
- bartvk 6y agoYeah but coding style dictates that the member is then named "makeWidget()". Any confusion about the returned type is minimal, IMHO.