Skip to content

Automated Resyntax fixes#553

Open
resyntax-ci[bot] wants to merge 12 commits intomasterfrom
autofix-49-1
Open

Automated Resyntax fixes#553
resyntax-ci[bot] wants to merge 12 commits intomasterfrom
autofix-49-1

Conversation

@resyntax-ci
Copy link
Contributor

@resyntax-ci resyntax-ci bot commented Mar 8, 2026

Resyntax fixed 20 issues in 9 files.

  • Fixed 6 occurrences of let-to-define
  • Fixed 2 occurrences of map-to-for
  • Fixed 2 occurrences of and-let-to-cond
  • Fixed 2 occurrences of for-each-to-for
  • Fixed 1 occurrence of if-void-to-when-or-unless
  • Fixed 1 occurrence of unless-expression-in-for-loop-to-unless-keyword
  • Fixed 1 occurrence of or-hash-ref-set!-to-hash-ref!
  • Fixed 1 occurrence of cond-let-to-cond-define
  • Fixed 1 occurrence of if-let-to-cond
  • Fixed 1 occurrence of provide/contract-to-contract-out
  • Fixed 1 occurrence of for-set!-to-for/fold
  • Fixed 1 occurrence of if-begin-to-cond

resyntax-ci bot added 12 commits March 8, 2026 01:25
Internal definitions are recommended instead of `let` expressions, to reduce nesting.
This expression can be replaced with a simpler, equivalent `hash-ref!` expression.
This conditional expression can be replaced with a simpler, equivalent expression.
Using `cond` allows converting `let` to internal definitions, reducing nesting
Using `cond` instead of `if` here makes `begin` unnecessary
`cond` with internal definitions is preferred over `if` with `let`, to reduce nesting
`for/fold` can be used instead of a mutating `for` loop
This `map` operation can be replaced with a `for/list` loop.
This `for-each` operation can be replaced with a `for` loop.
Use the `#:unless` keyword instead of `unless` to reduce loop body indentation.
Internal definitions are recommended instead of `let` expressions, to reduce nesting.
The `provide/contract` form is a legacy form made obsolete by `contract-out`.
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