This fixes the problem that report was evaluating the expression twice, meaning
(report(displayln"hi"))
Shows the output:
hi
(displayln hi) = #<void>
hi
This pull request fixes that and makes sure that the expression is evaluated only once. report-apply also had that problem.
I also simplified the implementations of report*, time-repeat*, and compare, and made them more hygienic, so that they do not throw away so much lexical context and source location info.
This fixes the problem that `report` was evaluating the expression twice, meaning
``` racket
(report (displayln "hi"))
```
Shows the output:
```
hi
(displayln hi) = #<void>
hi
```
This pull request fixes that and makes sure that the expression is evaluated only once.
`report-apply` also had that problem.
I also simplified the implementations of `report*`, `time-repeat*`, and `compare`, and made them more hygienic, so that they do not throw away so much lexical context and source location info.
This fixes the problem that
report
was evaluating the expression twice, meaningShows the output:
This pull request fixes that and makes sure that the expression is evaluated only once.
report-apply
also had that problem.I also simplified the implementations of
report*
,time-repeat*
, andcompare
, and made them more hygienic, so that they do not throw away so much lexical context and source location info.Thanks. I didn’t know one could spit the ellipsis from the pattern variable. Good to know
Spit → split ;)
943d422d5f
.Step 1:
From your project repository, check out a new branch and test the changes.Step 2:
Merge the changes and update on Gitea.