Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
jcdavis
on Feb 14, 2017
|
parent
|
context
|
favorite
| on:
Scala vs Go
function return types are not required in scala, although every style guide I've seen requires them for any non-trivial function
mi100hael
on Feb 14, 2017
[–]
I only use them on methods/vals that are intended to be publicly used just so I don't inadvertently change the type of something and break someone else's code. Within private methods, it doesn't really matter.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: