Treat trailing Elvis operator as part of a call chain #445
Labels
enhancement
New feature or request
formatting-discussions
Discussions about how formatting should look like, when there's no clear consensus.
This is a followup to #213.
Currently, a trailing Elvis operator is placed on the same line as the last step of a call chain if it fits:
This makes it easy to miss the fact that there's an Elvis operator if I'm quickly skimming the code, because it looks like it's part of the last step of the chained call. For example, the above code snippet isn't very visually distinct from:
I believe it'd be clearer to treat
?:
the same as?.
for purposes of line break placement and indentation, such that the first example turns intoThe text was updated successfully, but these errors were encountered: