Commit 78b05e6
Automated Resyntax fixes
This is an automated change generated by Resyntax.
#### Pass 1
Applied 1 fix to [`scribble-lib/scribble/base/lang/configure-runtime.rkt`](../blob/HEAD/scribble-lib/scribble/base/lang/configure-runtime.rkt)
* Line 3, `tidy-require`: Keep imports in `require` sorted and grouped by phase, with collections before files.
Applied 1 fix to [`scribble-lib/scribble/lncs/lang.rkt`](../blob/HEAD/scribble-lib/scribble/lncs/lang.rkt)
* Line 2, `tidy-require`: Keep imports in `require` sorted and grouped by phase, with collections before files.
Applied 17 fixes to [`scribble-lib/scribble/eval.rkt`](../blob/HEAD/scribble-lib/scribble/eval.rkt)
* Line 71, `let-to-define`: Internal definitions are recommended instead of `let` expressions, to reduce nesting.
* Line 89, `map-to-for`: This `map` operation can be replaced with a `for/list` loop.
* Line 109, `let-to-define`: Internal definitions are recommended instead of `let` expressions, to reduce nesting.
* Line 164, `map-to-for`: This `map` operation can be replaced with a `for/list` loop.
* Line 176, `cond-let-to-cond-define`: Internal definitions are recommended instead of `let` expressions, to reduce nesting.
* Line 193, `nested-if-to-cond`: This `if`-`else` chain can be converted to a `cond` expression.
* Line 270, `always-throwing-if-to-when`: Using `when` and `unless` is simpler than a conditional with an always-throwing branch.
* Line 276, `let-to-define`: Internal definitions are recommended instead of `let` expressions, to reduce nesting.
* Line 407, `cond-let-to-cond-define`: Internal definitions are recommended instead of `let` expressions, to reduce nesting.
* Line 421, `datum->syntax-migration`: The fifth argument to `datum->syntax` is ignored.
* Line 452, `let-to-define`: Internal definitions are recommended instead of `let` expressions, to reduce nesting.
* Line 463, `let-to-define`: Internal definitions are recommended instead of `let` expressions, to reduce nesting.
* Line 476, `let-to-define`: Internal definitions are recommended instead of `let` expressions, to reduce nesting.
* Line 486, `let-to-define`: Internal definitions are recommended instead of `let` expressions, to reduce nesting.
* Line 502, `let-to-define`: Internal definitions are recommended instead of `let` expressions, to reduce nesting.
* Line 547, `let-to-define`: Internal definitions are recommended instead of `let` expressions, to reduce nesting.
* Line 564, `let-to-define`: Internal definitions are recommended instead of `let` expressions, to reduce nesting.
Applied 1 fix to [`scribble-lib/scribble/manual.rkt`](../blob/HEAD/scribble-lib/scribble/manual.rkt)
* Line 2, `tidy-require`: Keep imports in `require` sorted and grouped by phase, with collections before files.
## Summary
Fixed 20 issues in 4 files.
* Fixed 10 occurrences of `let-to-define`
* Fixed 3 occurrences of `tidy-require`
* Fixed 2 occurrences of `map-to-for`
* Fixed 2 occurrences of `cond-let-to-cond-define`
* Fixed 1 occurrence of `nested-if-to-cond`
* Fixed 1 occurrence of `always-throwing-if-to-when`
* Fixed 1 occurrence of `datum->syntax-migration`1 parent 5b89a88 commit 78b05e6
File tree
4 files changed
+234
-241
lines changed- scribble-lib/scribble
- base/lang
- lncs
4 files changed
+234
-241
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | | - | |
| 3 | + | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| |||
0 commit comments