Hey handmade friends, just a survey:
How do you like to split your function calls onto multiple lines? (choose as many as apply)
- Open paren on same line
| somefunction(
first_argument,
second_argument,
third_argument
);
|
- Open paren on new line
| somefunction
(
first_argument,
second_argument,
third_argument,
);
|
- No newline on first argument, align arguments
| somefunction(first_argument,
second_argument,
third_argument);
|
- Break only as needed, no newline on first argument, align arguments
| somefunction(first_argument, second_argument,
third_argument, fourth_argument);
|
- Break only as needed, just indent subsequent lines
| somefunction(first_argument, second_argument,
third_argument, fourth_argument);
|
- None of the above
- Never, or very rarely
The purpose of this is to help me design a little language I'm working on for funsies.
[EDIT]Results, updated not-really-live![/EDIT]
Here are the results, including responses from a couple of other gamedev discord servers.
Believe it or not, there was somebody who has written a #2 or two! However, they did quality it heavily xD
| Open paren on same line: 7
Open paren on new line: 1 (but only when it's really big)
No newline on first argument, align arguments: 5
Break only as needed, no newline on first argument, align arguments: 12
Break only as needed, just indent subsequent lines: 4
None of the above: 1
Never or very rarely: 1
|