News for hackers. Stuff that matters.
Re:Discipline Doesn’t Scale by bartvk on Wednesday October 21, 2020 @07:02AM (#24846579)
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.
Re:Discipline Doesn’t Scale by heavenlyblue on Wednesday October 21, 2020 @05:17PM (#24852286)
Can’t members return other objects?
Re:Discipline Doesn’t Scale by bartvk on Wednesday October 21, 2020 @10:34PM (#24854378)
Yeah but coding style dictates that the member is then named "makeWidget()". Any confusion about the returned type is minimal, IMHO.