-
-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Automated Resyntax fixes #30
Conversation
`false/c` is an alias for `#f` that exists for backwards compatibility.
The `define` form supports a shorthand for defining functions.
This expression is equivalent to calling the `positive?` predicate.
Keep imports in `require` sorted and grouped by phase, with collections before files.
This `if` expression can be refactored to an equivalent expression using `and`.
racket/contract/base | ||
(prefix-in d: data/pool) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Gonna skip this one as discussed on Discord and in jackfirth/resyntax#432 .
@@ -126,7 +126,7 @@ | |||
|
|||
(define (is-percent-encoded? s [encode uri-encode]) | |||
(define num-%-matches (length (regexp-match* #rx"%" s))) | |||
(or (and (> num-%-matches 0) | |||
(or (and (positive? num-%-matches) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm also going to skip this one because I like the visual (conceptual?) "symmetry" of
(and (> x ...)
(= x ...))
(This was actually merged, I just dropped two of the commits.) |
Resyntax fixed 7 issues in 6 files.
false/c-migration
zero-comparison-to-positive?
define-lambda-to-define
tidy-require
if-else-false-to-and