Skip to content

Automated Resyntax fixes#814

Open
resyntax-ci[bot] wants to merge 10 commits into
masterfrom
autofix-154-1
Open

Automated Resyntax fixes#814
resyntax-ci[bot] wants to merge 10 commits into
masterfrom
autofix-154-1

Conversation

@resyntax-ci

@resyntax-ci resyntax-ci Bot commented Jul 12, 2026

Copy link
Copy Markdown
Contributor

Resyntax fixed 20 issues in 3 files.

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

resyntax-ci Bot added 10 commits July 12, 2026 00:34
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.
Using `cond` allows converting `let` to internal definitions, reducing nesting
This use of `printf` has no arguments other than the template string.
Internal definitions are recommended instead of `let` expressions, to reduce nesting.
This expression can be replaced with a simpler, equivalent `hash-update!` expression.
Use the `#:when` keyword instead of `when` to reduce loop body indentation.
Internal definitions are recommended instead of `let` expressions, to reduce nesting.
Nested `when` expressions can be merged into a single compound `when` expression.
This use of `define-values` is unnecessary.
These nested `for` loops can be replaced by a single `for*` loop.
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