-
-
Notifications
You must be signed in to change notification settings - Fork 92
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 #703
base: master
Are you sure you want to change the base?
Conversation
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`.
The `define` form supports a shorthand for defining functions.
Internal definitions are recommended instead of `let` expressions, to reduce nesting.
Internal definitions are recommended instead of `let` expressions, to reduce nesting.
…ut-lambda` The lambda can be removed from the failure result in this `hash-ref` expression.
This negated `when` expression can be replaced by an `unless` expression.
Internal definitions are recommended instead of `let` expressions, to reduce nesting.
Internal definitions are recommended instead of `let` expressions, to reduce nesting.
This negated `when` expression can be replaced by an `unless` expression.
default])))) | ||
(define (filename->defs source [default #f]) | ||
(let/ec | ||
k |
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.
@sorawee this is an unfortunate newline, I'd say. Better if let/ec
always put the identifier on the same line and then to inside the let/ec
isntead of to the start of the identifier. Is that possible?
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 agree. Currently the let/ec
call is treated like a function application. It would be easy to instruct that it's a special form, which needs to be formatted differently.
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.
Fixed by sorawee/fmt#83. @jackfirth is there a way to re-run this PR with the latest fmt?
This looks good to me. |
Resyntax fixed 20 issues in 1 file.
let-to-define
inverted-when
define-lambda-to-define
cond-let-to-cond-define
hash-ref-with-constant-lambda-to-hash-ref-without-lambda
if-else-false-to-and
tidy-require