MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/shittyprogramming/comments/177g9fv/quiz_question_what_does_this_rust_code_print/
r/shittyprogramming • u/xleviator • Oct 14 '23
11 comments sorted by
22
Be sure to drink your Ovaltine
51
live screw encourage carpenter literate hat wipe beneficial chop cobweb
This post was mass deleted and anonymized with Redact
7 u/Leifbron Oct 14 '23 I don't think he meant a literal quiz question, I think he meant "pop quiz", like metaphorically.He's using Rust Playground online. He literally could have run it himself.
7
I don't think he meant a literal quiz question, I think he meant "pop quiz", like metaphorically.
He's using Rust Playground online. He literally could have run it himself.
4
I love to dance!
1
1?
1 u/xleviator Oct 28 '23 Yeah! You're getting it. The '?' unconditionally exits. I think it's really hard to notice what the possible control flows are here. 1 u/jojoyt Nov 05 '23 also err(false) should exit should it not?
Yeah! You're getting it. The '?' unconditionally exits. I think it's really hard to notice what the possible control flows are here.
1 u/jojoyt Nov 05 '23 also err(false) should exit should it not?
also err(false) should exit should it not?
3
trigger warning ffs
2
It will infer nested results and exit
why should I care?
looks like a classic case of forgetting to dereference a pointer. rookie mistake.
22
u/LaLiLuLeLo_0 Oct 14 '23
Be sure to drink your Ovaltine
51
u/TheBluetopia Oct 14 '23 edited May 10 '25
live screw encourage carpenter literate hat wipe beneficial chop cobweb
This post was mass deleted and anonymized with Redact
4
u/mydoglixu Oct 14 '23
I love to dance!
1
u/Gold-Concentrate-841 Oct 18 '23
1?
3
u/skotchpine Oct 14 '23
trigger warning ffs
2
u/theXpanther Oct 14 '23
It will infer nested results and exit
1
u/Litra Oct 14 '23
why should I care?
1
u/Hw_Connect Nov 26 '23
looks like a classic case of forgetting to dereference a pointer. rookie mistake.