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
revert current-check-around void? contract #126
Conversation
I would like to discuss reverting part of 1fbc98e There doesn't seem to be a reason to limit the behavior, it's different from what the docs specify, and it breaks existing programs.
cc @jackfirth |
I'm open to reverting it. Could you share more information about the breakage this caused? |
Sure. RacketScript's test suite is currently set up to have the test thunks return a value. Long story short, since it is not checking Racket programs, it cannot operate completely using Rackunit forms, and instead it inspects and compares stdout and stderr streams returned by a test. |
There's this bit in the docs:
I believe it was intended that checks never be allowed to return anything other than This was never enforced by any of the check creation forms however. We could consider changing the docs to officially allow checks to return values, but we'd need to be pretty thorough about adding tests for that. |
The 7.9 release is about to come out. I think we should definitely revert a change that breaks existing code, and do it soon. cc @racket/release |
Ok I see that line now. But it still seems like Regarding multiple return values, would |
Yep,
|
I agree that we should not let this change into the release, as it is known to be a breaking change and we don't know the limit of the damage yet |
Can we change the result contract to |
Yeah, let's do that. |
isnt that what this pr does? |
Yes, I'll merge it. (I've been a little out of it lately.) |
This PR uses |
Did multiple values ever work before? |
I though we wanted to restrict to a single value? |
Ah, ok. I'll do the release branch bit now. |
Done now. |
I would like to discuss reverting part of 1fbc98e
There doesn't seem to be a reason to limit the behavior, it's different from what the docs specify, and it breaks existing programs.