codegrip
codegrip copied to clipboard
Adhere to tidyverse style guide
See https://github.com/tidyverse/style/issues/173#issuecomment-904073980 and https://github.com/tidyverse/style/pull/174 for context.
CC @lionel-.
After having written some Typescript and Rust code, I think balanced delimiters are probably more conventional overall?
I no longer have a strong preference, I have settled for whatever the tidyverse style guide suggests. Are you willing to reopen that discussion upstream? It looks like an uphill battle to me.
Should we offer both options here, i.e., cycle through the tidyverse and the TS/Rust way?
As a Rust programmer and an R programmer, I quite appreciate that codegrip formats function arguments to have the closing paren and leading { on their own line. The unbalanced closing of the tidyverse style guide feels....unbalanced. It would be great to have the default be balance and opt-in to the tidyverse style guide.