Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make adding space after "?" in conditional expression configurable #687

Open
quarc2 opened this issue Nov 26, 2024 · 0 comments
Open

Make adding space after "?" in conditional expression configurable #687

quarc2 opened this issue Nov 26, 2024 · 0 comments

Comments

@quarc2
Copy link

quarc2 commented Nov 26, 2024

So this is a bit of a nitpick, but I strongly prefer ternary expressions that look like cond? result1 : result2 instead of cond ? result1 : result2.

Looking at the tests, it seems like converting the former into the latter is unconfigurable and intentional behavior - can this be a configuration option instead?

@quarc2 quarc2 changed the title Do not add space after "?" in conditional expression Make adding space after "?" in conditional expression configurable Nov 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant