Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Conversation

resyntax-ci[bot]
Copy link
Contributor

@resyntax-ci resyntax-ci bot commented Jul 8, 2025

Resyntax fixed 20 issues in 6 files.

  • Fixed 6 occurrences of let-to-define
  • Fixed 4 occurrences of arrow-contract-with-rest-to-arrow-contract-with-ellipses
  • Fixed 3 occurrences of map-to-for
  • Fixed 2 occurrences of for-each-to-for
  • Fixed 1 occurrence of define-lambda-to-define
  • Fixed 1 occurrence of provide-deduplication
  • Fixed 1 occurrence of for/fold-result-keyword
  • Fixed 1 occurrence of for-set!-to-for/fold
  • Fixed 1 occurrence of if-begin-to-cond

resyntax-ci bot added 9 commits July 8, 2025 00:45
This `map` operation can be replaced with a `for/list` loop.
Internal definitions are recommended instead of `let` expressions, to reduce nesting.
This `for-each` operation can be replaced with a `for` loop.
Only one of the `for/fold` expression's result values is used. Use the `#:result` keyword to return just that result.
Using `cond` instead of `if` here makes `begin` unnecessary
The `define` form supports a shorthand for defining functions.
…-ellipses`

This `->*` contract can be rewritten using `->` with ellipses.
`for/fold` can be used instead of a mutating `for` loop
Providing the same identifier multiple times is unnecessary.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Many of the changes in this file are reformatting changes caused by for/fold-result-keyword being a bit over-eager. Fixed that in jackfirth/resyntax#476.

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

Morty Proxy This is a proxified and sanitized view of the page, visit original site.