3 ms·
function return types are not required in scala, although every style guide I've seen requires them for any non-trivial function
by jcdavis 10y ago
function return types are not required in scala, although every style guide I've seen requires them for any non-trivial function
- mi100hael 10y agoI 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.