it doesn't say to do step one again, it tells you to read the instructions. It doesn't say to do what the instructions says, ergo not technically an infinite loop. But great post, and it fits the sub as it is recursion. Sorry for being a nerd and 'um actually'ing you
Honestly if we're gonna get nitpicky then it's neither recursion or a loop because we're humans and not computers. My brain reads it as "start at step one". That's why it works as a loop in my mind
You are missing the point entirely. A recursion is something different than a loop. A loop is when you are told "keep repeating these steps". A recursion is when you are told to do the same thing you are already in the process of doing.
You posted a recursion ("read the instructions inside the instructions") and called it a loop ("go back to step 1").
If we are not pedantic about that difference, then this sub is worthless.
You're missing the point. The instructions are the piece of paper that I took this picture from. The instructions don't say "Step 2: read these instructions above." Step 2 is referring to the instructions that I took the picture of. We're not going deeper into the instructions, we're being brought back to step 1 in the original instructions, hence a loop. We are being told to keep repeating steps 1 and 2.
But all this doesn't matter. By all means, be pedantic about the difference. Not everything on here matches the sub exactly. You're welcome to unfollow the sub.
Like I said in my other comment, if you're getting so nitpicky then neither of us are correct because we're not computers. I go to step 1, step 2, then back to step 1, then step 2. It's a loop. Maybe not a while loop or any other comp sci loop, but I'm looping through 2 options. Hell, I'll call it an oscillation if I want to. Feel free to feel sorry for me, it seems to bother you way more than it does me
21
u/onko342 Nov 30 '22
Wash or sanitize your hands. Now do it again. Then again. Then again…
10
u/TemporalTickTock Nov 30 '22
You turn the page, you wash your hands. You turn the page, you wash your hands
2
u/Kaisachicken Nov 30 '22
it doesn't say to do step one again, it tells you to read the instructions. It doesn't say to do what the instructions says, ergo not technically an infinite loop. But great post, and it fits the sub as it is recursion. Sorry for being a nerd and 'um actually'ing you
4
u/AutoModerator Nov 30 '22
int main() { main(); }
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
-18
u/2brainz Nov 30 '22
That's not an "infinite loop". It's not a loop at all.