Skip to content

Automated Resyntax fixes#765

Merged
rfindler merged 7 commits intomasterfrom
autofix-107-1
Aug 17, 2025
Merged

Automated Resyntax fixes#765
rfindler merged 7 commits intomasterfrom
autofix-107-1

Conversation

@resyntax-ci
Copy link
Contributor

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

Resyntax fixed 20 issues in 1 file.

  • Fixed 11 occurrences of let-to-define
  • Fixed 2 occurrences of provide/contract-to-contract-out
  • Fixed 2 occurrences of define-case-lambda-to-define
  • Fixed 2 occurrences of if-else-false-to-and
  • Fixed 1 occurrence of if-let-to-cond
  • Fixed 1 occurrence of always-throwing-if-to-when
  • Fixed 1 occurrence of define-lambda-to-define

resyntax-ci bot added 7 commits August 17, 2025 00:12
The `provide/contract` form is a legacy form made obsolete by `contract-out`.
Internal definitions are recommended instead of `let` expressions, to reduce nesting.
This `if` expression can be refactored to an equivalent expression using `and`.
This use of `case-lambda` is equivalent to using `define` with optional arguments.
The `define` form supports a shorthand for defining functions.
`cond` with internal definitions is preferred over `if` with `let`, to reduce nesting
Using `when` and `unless` is simpler than a conditional with an always-throwing branch.
@rfindler rfindler merged commit e4fcfcd into master Aug 17, 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