Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
bartvk
on Oct 21, 2020
|
parent
|
context
|
favorite
| on:
Discipline Doesn’t Scale
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
on Oct 21, 2020
[–]
Can’t members return other objects?
bartvk
on Oct 22, 2020
|
parent
[–]
Yeah but coding style dictates that the member is then named "makeWidget()". Any confusion about the returned type is minimal, IMHO.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: