I noticed that Go function signatures sometimes have a return value in parentheses, and sometimes do not. Is this just a matter of taste, or is there a deeper implication to choosing one over the other.
I've looked through the go documentation, and in go specs in blog articles etc, and not found anything conclusive to answer this question. Most function signature definitions I've come across gloss over this point, and that is why I believe the answer is nuanced.
func Example(num int) (error){
..
}
func Example(num int) error {
..
}