I’ve seen this format used for comma-delimited lists in some C++ code (although this could apply to any language):
void function( int a , int b , int c )
I was wondering why would someone use that over a more common format such as:
void function (int a, int b, int c )
That’s a pretty common coding style when writing SQL statements:
Advantages:
I wouldn’t think you’d want to rearrange parameter order in a function as frequent as you do in SQL, so maybe its just somebody’s habit.
The ability to comment one of them out will depend on the specific language being used. Not sure about C++. I know that VB.Net wouldn’t allow it, but that’s because it requires a continuation character ( _ ) to split statements across lines.