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

Automated Resyntax fixes #1419

Open
wants to merge 12 commits into
base: master
Choose a base branch
from
Open

Automated Resyntax fixes #1419

wants to merge 12 commits into from

Conversation

resyntax-ci[bot]
Copy link
Contributor

@resyntax-ci resyntax-ci bot commented Dec 20, 2024

Resyntax fixed 43 issues in 20 files.

  • Fixed 13 occurrences of tidy-require
  • Fixed 9 occurrences of define-lambda-to-define
  • Fixed 6 occurrences of single-clause-match-to-match-define
  • Fixed 6 occurrences of let-to-define
  • Fixed 2 occurrences of if-begin-to-cond
  • Fixed 2 occurrences of map-to-for
  • Fixed 1 occurrence of zero-comparison-to-positive?
  • Fixed 1 occurrence of if-x-else-x-to-and
  • Fixed 1 occurrence of and-match-to-match
  • Fixed 1 occurrence of zero-comparison-to-negative?
  • Fixed 1 occurrence of format-identity

resyntax-ci bot added 12 commits December 20, 2024 00:33
This expression is equivalent to calling the `positive?` predicate.
This `match` expression can be simplified using `match-define`.
Internal definitions are recommended instead of `let` expressions, to reduce nesting.
Keep imports in `require` sorted and grouped by phase, with collections before files.
This conditional expression can be replaced with a simpler, equivalent expression.
This `map` operation can be replaced with a `for/list` loop.
The `define` form supports a shorthand for defining functions.
This use of `format` does nothing.
Using `cond` instead of `if` here makes `begin` unnecessary
This expression is equivalent to calling the `negative?` predicate.
This `and` expression can be turned into a clause of the inner `match` expression, reducing nesting.
Internal definitions are recommended instead of `let` expressions, to reduce nesting.
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

Successfully merging this pull request may close these issues.

0 participants