-
Notifications
You must be signed in to change notification settings - Fork 52
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
run
prints value with bogus type
#328
Comments
Another odd thing which seems related:
Both execute normally, but in the first case nothing is printed, whereas in the second case |
When an expression is entered at the REPL, we first store its type by setting the ...I guess this means |
I also encountered |
To be clear at this point, I am keeping this open so we remember that it's a problem, but I expect it will be completely and properly solved by #495, so this issue is not worth working on in and of itself. |
Fun idea, would it make more sense for run to have type Then you could at least use the return value at your own risk. |
I don't see how that would be better. It would still be wrong, and you can already use the return value at your own risk. |
Ah, good point. Still, I don't really see the benefit. I'd rather just do it properly and implement #495. In fact that is one of the next things I was thinking of working on. |
Also related is #1087 which will hopefully get rid of all the |
Describe the bug
Calling
run
on certain files causes the result of executing the file to be printed along with a unit type, regardless of the actual type of the result.To Reproduce
In
true.sw
:Now start swarm and at the REPL, type
run("true.sw")
This will print outExpected behavior
It should result in
(or perhaps it shouldn't print anything at all?).
The text was updated successfully, but these errors were encountered: