Skip to content

Conversation

@resyntax-ci
Copy link
Contributor

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

Resyntax fixed 20 issues in 7 files.

  • Fixed 8 occurrences of map-to-for
  • Fixed 3 occurrences of provide/contract-to-contract-out
  • Fixed 3 occurrences of let-to-define
  • Fixed 2 occurrences of always-throwing-if-to-when
  • Fixed 1 occurrence of cond-else-cond-to-cond
  • Fixed 1 occurrence of or-hash-ref-set!-to-hash-ref!
  • Fixed 1 occurrence of arrow-contract-with-rest-to-arrow-contract-with-ellipses
  • Fixed 1 occurrence of string-append-and-string-join-to-string-join

resyntax-ci bot added 8 commits January 8, 2025 00:15
The `else` clause of this `cond` expression is another `cond` expression and can be flattened.
The `provide/contract` form is a legacy form made obsolete by `contract-out`.
This `map` operation can be replaced with a `for/list` loop.
…ellipses`

This `->*` contract can be rewritten using `->` with ellipses.
Internal definitions are recommended instead of `let` expressions, to reduce nesting.
This expression can be replaced with a simpler, equivalent `hash-ref!` expression.
This use of `string-append` can be removed by using `string-join`'s keyword arguments.
Using `when` and `unless` is simpler than a conditional with an always-throwing branch.
" | Package: "
(string-join (map ~a from-pkgs) ", "))
""))))
(string-join ", "
Copy link
Contributor

Choose a reason for hiding this comment

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

@jackfirth I don't think this is correct. The first argument to string-join must be a list.

Copy link
Contributor

Choose a reason for hiding this comment

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

@jackfirth
Copy link
Contributor

Closing due to failures.

@jackfirth jackfirth closed this Jan 8, 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.

3 participants