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

rewrite if a != b, do: x, else: y negations? #132

Closed
novaugust opened this issue Mar 7, 2024 · 0 comments
Closed

rewrite if a != b, do: x, else: y negations? #132

novaugust opened this issue Mar 7, 2024 · 0 comments

Comments

@novaugust
Copy link
Contributor

novaugust commented Mar 7, 2024

Versions

  • Elixir: use elixir --version
  • Styler: use mix deps | grep locked | grep styler

Example Input

    x =
      if y[:z] != w do
        a
      else
        b
      end

right now we only rewrite ! and not operators. should we rewrite != to ==? what repercussions would there be for things like ! (a != b)?

@novaugust novaugust changed the title if else with negation not being rewritten rewrite if a != b, do: x, else: y negations? Mar 8, 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