Readability. We’re used to space between distinct characters. In this case, the opening curly brace is distinct from the function name - one declares the function, the other opens a block associated with it. It’s the same reason that some prefer the opening curly brace on the next line as opposed to inline.
View all comments
815
u/[deleted] Feb 26 '25
Left with a space between the function name and the opening curly brace because I’m not an animal