Skip to content

Automated Resyntax fixes#766

Merged
rfindler merged 12 commits intomasterfrom
autofix-108-1
Aug 24, 2025
Merged

Automated Resyntax fixes#766
rfindler merged 12 commits intomasterfrom
autofix-108-1

Conversation

@resyntax-ci
Copy link
Contributor

@resyntax-ci resyntax-ci bot commented Aug 24, 2025

Resyntax fixed 20 issues in 3 files.

  • Fixed 6 occurrences of let-to-define
  • Fixed 2 occurrences of in-hash-to-in-hash-keys
  • Fixed 2 occurrences of ignored-map-to-for-each
  • Fixed 2 occurrences of in-hash-to-in-hash-values
  • 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
  • Fixed 1 occurrence of string-append-with-format-to-format
  • Fixed 1 occurrence of hash-set!-ref-to-hash-update!
  • Fixed 1 occurrence of explicit-cond-else-void
  • Fixed 1 occurrence of map-to-for
  • Fixed 1 occurrence of apply-flattening

resyntax-ci bot added 12 commits August 24, 2025 00:20
Internal definitions are recommended instead of `let` expressions, to reduce nesting.
This `map` operation can be replaced with a `for/list` loop.
Internal definitions are recommended instead of `let` expressions, to reduce nesting.
This expression can be replaced with a simpler, equivalent `hash-update!` expression.
This `in-hash` can be replaced with `in-hash-keys` since the value is not used.
This `if` expression can be refactored to an equivalent expression using `and`.
This `in-hash` can be replaced with `in-hash-values` since the key is not used.
Add an explicit `[else (void)]` clause to make the default behavior clear.
The `apply` function accepts single arguments in addition to a trailing list argument.
This `string-append` with `format` expression can be simplified to a single `format` call.
The result of this `map` expression is unused. Make that explicit with `for-each` instead.
The `instantiate` form is for mixing positional and by-name constructor arguments. When no positional arguments are needed, use `new` instead.
@rfindler rfindler merged commit 29874ec into master Aug 24, 2025
2 checks passed
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