Skip to content

Automated Resyntax fixes#816

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

Automated Resyntax fixes#816
resyntax-ci[bot] wants to merge 7 commits into
masterfrom
autofix-155-1

Conversation

@resyntax-ci

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

Copy link
Copy Markdown
Contributor

Resyntax fixed 20 issues in 2 files.

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

resyntax-ci Bot added 7 commits July 19, 2026 00:27
These nested `for` loops can be replaced by a single `for*` loop.
This expression can be replaced with a simpler, equivalent `hash-update!` expression.
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.
Internal definitions are recommended instead of `let` expressions, to reduce nesting.
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
(format (string-constant cs-binder-count) end))))
(cond
;; assume this is a binder, show uses
#;(when (and color? (zero? start))

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this comment was moved improperly

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@rfindler

Copy link
Copy Markdown
Member

Don't like how the comment was moved so I'll close this one.

@rfindler rfindler closed this Jul 19, 2026
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