这是indexloc提供的服务,不要输入任何密码
Skip to content

Automated Resyntax fixes #1463

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

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

Automated Resyntax fixes #1463

wants to merge 14 commits into from

Conversation

resyntax-ci[bot]
Copy link
Contributor

@resyntax-ci resyntax-ci bot commented Jul 18, 2025

Resyntax fixed 33 issues in 20 files.

  • Fixed 9 occurrences of define-lambda-to-define
  • Fixed 5 occurrences of let-to-define
  • Fixed 3 occurrences of read-line-any
  • Fixed 2 occurrences of nested-if-to-cond
  • Fixed 2 occurrences of always-throwing-if-to-when
  • Fixed 2 occurrences of consing-onto-static-list
  • Fixed 2 occurrences of if-begin-to-cond
  • Fixed 2 occurrences of if-else-false-to-and
  • Fixed 1 occurrence of single-clause-match-to-match-define
  • Fixed 1 occurrence of if-let-to-cond
  • Fixed 1 occurrence of define-values-values-to-define
  • Fixed 1 occurrence of cond-let-to-cond-define
  • Fixed 1 occurrence of define-let-to-double-define
  • Fixed 1 occurrence of format-identity

resyntax-ci bot added 14 commits July 18, 2025 01:02
Specify a line mode of `'any` with `read-line` to avoid differences between Windows and other platforms.
Internal definitions are recommended instead of `let` expressions, to reduce nesting.
This use of `format` does nothing.
Using `cond` instead of `if` here makes `begin` unnecessary
This use of `define-values` is unnecessary.
This `match` expression can be simplified using `match-define`.
Using `when` and `unless` is simpler than a conditional with an always-throwing branch.
`cond` with internal definitions is preferred over `if` with `let`, to reduce nesting
Internal definitions are recommended instead of `let` expressions, to reduce nesting.
This `if`-`else` chain can be converted to a `cond` expression.
The `define` form supports a shorthand for defining functions.
This `if` expression can be refactored to an equivalent expression using `and`.
This list-constructing expression can be simplified
This `let` expression can be pulled up into a `define` expression.
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