Hacker News new | past | comments | ask | show | jobs | submit login

function return types are not required in scala, although every style guide I've seen requires them for any non-trivial function



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: