Skip to content

Automated Resyntax fixes - #826

Open
resyntax-ci[bot] wants to merge 7 commits into
masterfrom
autofix-164-1
Open

resyntax-ci[bot] wants to merge 7 commits into
masterfrom
autofix-164-1

Conversation

@resyntax-ci

@resyntax-ci resyntax-ci Bot commented Sep 20, 2026

Copy link
Copy Markdown
Contributor

Resyntax fixed 20 issues in 3 files.

  • Fixed 7 occurrences of let-to-define
  • Fixed 5 occurrences of nested-for-to-for*
  • Fixed 3 occurrences of list-element-definitions-to-match-define
  • Fixed 2 occurrences of hash-set!-ref-to-hash-update!
  • Fixed 1 occurrence of and-let-to-cond
  • Fixed 1 occurrence of if-else-false-to-and
  • Fixed 1 occurrence of when-expression-in-for-loop-to-when-keyword

These nested `for` loops can be replaced by a single `for*` loop.
This expression can be replaced with a simpler, equivalent `hash-update!` expression.
Internal definitions are recommended instead of `let` expressions, to reduce nesting.
These list element variable definitions can be expressed more succinctly with `match-define`. Note that the suggested replacement raises an error if the list contains more elements than expected.
This `if` expression can be refactored to an equivalent expression using `and`.
Use the `#:when` keyword instead of `when` to reduce loop body indentation.
Using `cond` allows converting `let` to internal definitions, reducing 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