for small things like that, it's probably fine, but I always disliked omitting the return type for functions. I'd rather see a red squiggly at the function declaration than at all of my call-sites if I modify a function and accidentally end up changing its return value