You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I will need to double-check but I believe this formatting solely depends on the expression and doesn't need type information. So it should be possible to do (and would be trivial to do), assuming there's agreement on it.
Proposal Details
I know this is dangerously close to bike-shedding but I thought it worth the suggestion, even if it ends up being closed.
Here's a quite tortured example that's derived from something slightly less tortured.
When passed through gofmt, this becomes
which, to my eye, seems worse. The terms after the range keyword form a tight conceptual cluster, but the text is spread.
I didn't see any discussion on #61405 about associated gofmt rules, so this may be an unintended outcome.
I propose that the spacing be as with function calls. I'm happy to have a stab at an implementation.
The text was updated successfully, but these errors were encountered: