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

[FR] implement if_to_conditional option #631

Open
t-bltg opened this issue Aug 7, 2022 · 0 comments
Open

[FR] implement if_to_conditional option #631

t-bltg opened this issue Aug 7, 2022 · 0 comments
Labels
enhancement New feature or request options

Comments

@t-bltg
Copy link
Contributor

t-bltg commented Aug 7, 2022

Per #629 (comment).

Should transform simple ifs to ternary, iff it fits the margin:

# transform ...
a = if cond
   1
else
   nothing
end

# ... to
a = cond ? 1 : nothing
@domluna domluna added enhancement New feature or request options labels Aug 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request options
Projects
None yet
Development

No branches or pull requests

2 participants