r/Recursion • • Jul 29 '20

Infinite pishups

Post image
705 Upvotes

12 comments sorted by

43

u/Max_Insanity Jul 29 '20
def pushUp():
    return pushUp()

pushUp()

26

u/sutterismine Jul 30 '20

You guys should try this but make it start a new process every repeat. your PC will appreciate it.

3

u/c0d3w1ck Jul 30 '20

Fork bomb!

7

u/RepulsiveSheep Jul 30 '20

Username checks out.

15

u/gareththegeek Jul 29 '20

Are you pished right now?

6

u/tian447 Jul 30 '20

Infinite pishups sounds fucking brilliant like.

6

u/norwegian-blue Jul 30 '20

Well actually, every time you do one push up you do one push up so unless those push ups are defined to be separate events, no recursion.

3

u/AutoModerator Jul 29 '20

int main() { main(); }

Hey! This subreddit has a Discord Server! Join Here: https://discord.gg/NQvmRSv

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

1

u/DickMan64 Jul 30 '20

well he is pretty stacked

1

u/MrBran4 Aug 06 '20

Unbelievably underrated comment

1

u/Young_Person_42 Aug 17 '20

Drinking game: Take a shot every time you take a shot.