Skip to content

Automated Resyntax fixes - #572

Open
resyntax-ci[bot] wants to merge 14 commits into
masterfrom
autofix-55-1
Open

Automated Resyntax fixes#572
resyntax-ci[bot] wants to merge 14 commits into
masterfrom
autofix-55-1

Conversation

@resyntax-ci

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

Copy link
Copy Markdown
Contributor

Resyntax fixed 20 issues in 10 files.

  • Fixed 4 occurrences of let-to-define
  • Fixed 4 occurrences of map-to-for
  • Fixed 1 occurrence of quasiquote-to-list
  • Fixed 1 occurrence of for/fold-result-keyword
  • Fixed 1 occurrence of nested-if-to-cond
  • Fixed 1 occurrence of predicate/c-migration
  • Fixed 1 occurrence of cond-let-to-cond-define
  • Fixed 1 occurrence of arrow-contract-with-rest-to-arrow-contract-with-ellipses
  • Fixed 1 occurrence of consing-onto-static-list
  • Fixed 1 occurrence of and-let-to-cond
  • Fixed 1 occurrence of if-let-to-cond
  • Fixed 1 occurrence of string-append-and-string-join-to-string-join
  • Fixed 1 occurrence of define-let-to-multi-define
  • Fixed 1 occurrence of always-throwing-if-to-when

resyntax-ci Bot added 14 commits September 8, 2026 01:07
This `map` operation can be replaced with a `for/list` loop.
Using `when` and `unless` is simpler than a conditional with an always-throwing branch.
…ellipses`

This `->*` contract can be rewritten using `->` with ellipses.
The `predicate/c` contract is less clear than a `->` contract and no longer improves performance.
This quasiquotation is equivalent to a simple `list` call.
Only one of the `for/fold` expression's result values is used. Use the `#:result` keyword to return just that result.
This `if`-`else` chain can be converted to a `cond` expression.
`cond` with internal definitions is preferred over `if` with `let`, to reduce nesting
Using `cond` allows converting `let` to internal definitions, reducing nesting
This use of `string-append` can be removed by using `string-join`'s keyword arguments.
This `let` expression can be pulled up into multiple `define` expressions.
This list-constructing expression can be simplified
Internal definitions are recommended instead of `let` expressions, to reduce nesting.
Internal definitions are recommended instead of `let` expressions, to reduce 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