Join Slack
Powered by
one thing I don't get about REPL: Since it evaluat...
# getting-started
f
Florian
06/21/2019, 8:08 PM
one thing I don't get about REPL: Since it evaluates expressions, shouldn't "print("Hi")" display "Unit" instead of "Hi"?
d
Dominaezzz
06/21/2019, 8:09 PM
python does the same I think. (Not an answer, I know)
f
Florian
06/21/2019, 8:23 PM
I mean it makes sense but technically thats not the value of that expression, right?
Florian
06/21/2019, 8:23 PM
maybe I am mistaken
d
Dominaezzz
06/21/2019, 8:24 PM
Yeah it isn't.
Dominaezzz
06/21/2019, 8:24 PM
I think if stdout was untouched, then the expression is printed.
Dominaezzz
06/21/2019, 8:24 PM
I don't think the expression is that useful outside of basic maths.
Open in Slack
Previous
Next