Skip to content

Automated Resyntax fixes #748

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

Closed
wants to merge 9 commits into from
Closed

Automated Resyntax fixes #748

wants to merge 9 commits into from

Conversation

resyntax-ci[bot]
Copy link
Contributor

@resyntax-ci resyntax-ci bot commented Jun 22, 2025

Resyntax fixed 20 issues in 5 files.

  • Fixed 8 occurrences of let-to-define
  • Fixed 4 occurrences of hash-set!-ref-to-hash-update!
  • Fixed 3 occurrences of nested-for-to-for*
  • Fixed 1 occurrence of for-each-to-for
  • Fixed 1 occurrence of map-to-for
  • Fixed 1 occurrence of instantiate-to-new
  • Fixed 1 occurrence of cond-let-to-cond-define
  • Fixed 1 occurrence of if-else-false-to-and

resyntax-ci bot added 9 commits June 22, 2025 00:15
Internal definitions are recommended instead of `let` expressions, to reduce nesting.
This expression can be replaced with a simpler, equivalent `hash-update!` expression.
These nested `for` loops can be replaced by a single `for*` loop.
This `if` expression can be refactored to an equivalent expression using `and`.
Internal definitions are recommended instead of `let` expressions, to reduce nesting.
This `for-each` operation can be replaced with a `for` loop.
This `map` operation can be replaced with a `for/list` loop.
This expression can be replaced with a simpler, equivalent `hash-update!` expression.
The `instantiate` form is for mixing positional and by-name constructor arguments. When no positional arguments are needed, use `new` instead.
@rfindler rfindler closed this Jul 6, 2025
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.

1 participant