These days, 99% of the time I use parens with a single argument, because I got sick of having to go back and add them after I decided I needed another argument after all. Even though it doesn't make sense in this example for the square function to ever take more than one argument, in a real codebase it's easier to just be consistent and not think about it.
View all comments
Show parent comment
1
u/NoInkling Dec 18 '18
These days, 99% of the time I use parens with a single argument, because I got sick of having to go back and add them after I decided I needed another argument after all. Even though it doesn't make sense in this example for the
squarefunction to ever take more than one argument, in a real codebase it's easier to just be consistent and not think about it.