|
|
|
|
|
by kazinator
1318 days ago
|
|
The canonical notation is like this: func(arg1, arg2, arg3)
the first example splits it across multiple lines in a way which maximally preserves the other aspects of the notation.The argument is already being muddled with the function in the same way. These conventions are seen in the wild: func (arg1, arg2, arg3)
and func( arg1, arg2, arg3 )
The real fix for that muddling is to drop the commas, and move the parenthesis to include the function: (func arg1 arg2 arg3)
Now func and arg1 are no more or less muddled than are arg1 and arg2. :) |
|
Once you’re splitting it across lines I don’t think that is a desirable attribute. Better to use a format that suits multiple lines than attempt to match as closely as possible to a format intended for one line. Like those “flying cars” that try to look like the “canonical” car.
From my perspective this is a UI problem (though not a serious one).