Skip to content

Automated Resyntax fixes#763

Closed
resyntax-ci[bot] wants to merge 7 commits intomasterfrom
autofix-105-1
Closed

Automated Resyntax fixes#763
resyntax-ci[bot] wants to merge 7 commits intomasterfrom
autofix-105-1

Conversation

@resyntax-ci
Copy link
Contributor

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

Resyntax fixed 20 issues in 8 files.

  • Fixed 12 occurrences of let-to-define
  • Fixed 2 occurrences of string-append-with-format-to-format
  • Fixed 2 occurrences of cond-let-to-cond-define
  • Fixed 1 occurrence of map-to-for
  • Fixed 1 occurrence of make-temporary-directory-migration
  • Fixed 1 occurrence of nested-when-to-compound-when
  • Fixed 1 occurrence of inline-unnecessary-begin

resyntax-ci bot added 7 commits August 3, 2025 00:14
Internal definitions are recommended instead of `let` expressions, to reduce nesting.
Nested `when` expressions can be merged into a single compound `when` expression.
This `begin` form can be flattened into the surrounding definition context.
This `map` operation can be replaced with a `for/list` loop.
Internal definitions are recommended instead of `let` expressions, to reduce nesting.
This `string-append` with `format` expression can be simplified to a single `format` call.
Use `make-temporary-directory` to make directories instead of `make-temporary-file`.
@rfindler
Copy link
Member

rfindler commented Aug 3, 2025

I don't particularly like the changes in the commit with the message "Fix 2 occurrences of string-append-with-format-to-format", as I think of the computation in a different way, with the test matching what the code is doing.

@rfindler rfindler closed this Aug 3, 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