Skip to content

Conversation

@resyntax-ci
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.
@samth samth closed this Jun 6, 2025
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.

2 participants