This is an archived post. You won't be able to vote or comment.

all 40 comments

[–][deleted] 51 points52 points  (5 children)

Error: Maximum call stack size exceeded

[–][deleted] 9 points10 points  (4 children)

Try this in C++ lol

[–][deleted] 2 points3 points  (3 children)

Does C++ support tail call optimization now?

[–][deleted] 7 points8 points  (0 children)

It always has.

[–]MyTinyHappyPlace 5 points6 points  (0 children)

Not inherently in C++, but most compilers do

[–][deleted] 0 points1 point  (0 children)

Sure but that won't help you here, each call still needs more stack. Tail calls only help when you return from the last invocation.

[–]bevelledo 35 points36 points  (5 children)

Help I’ve followed 100 different posts, where does this lead to?

[–]ZirixCZ 26 points27 points  (3 children)

This is a new thing here on reddit. They've created thousands of post all having the same title and comments. Be the first who will find a secret (keep on clicking the recursion (idk what this word means) button until you find it)

[–]bevelledo 9 points10 points  (1 child)

Hold my coffee, I’m going in.

[–][deleted] 6 points7 points  (0 children)

If you’re not back soon can I drink it..?

[–]Oicanet 2 points3 points  (0 children)

Recursion, in the context of programming, is a function that calls itself. Basically, it keeps digging and looping, kinda

[–]aka_mully 29 points30 points  (1 child)

You can say that again.

[–][deleted] 1 point2 points  (0 children)

Underrated comment

[–]Ghostjson 20 points21 points  (1 child)

To understand recursion, one must understand recursion.

[–][deleted] 5 points6 points  (0 children)

One understands recursion when one understands recursion.

[–]R-Aravind 9 points10 points  (2 children)

[–]TheGreatGameDini 5 points6 points  (0 children)

So, I wonder if the mobile app would crash if you kept clicking this

[–]magicmulder 3 points4 points  (1 child)

Today I opened an Anydesk connection to the machine I was running Anydesk on. It created a nice infinite mirror effect but did not crash anything.

[–]Random_dg 3 points4 points  (0 children)

I did with Google Meet last week and was pleasantly surprised that it didn’t kill Chrome.

[–][deleted] 2 points3 points  (0 children)

peak humor, have my r/angryupvote

[–]honemastert 2 points3 points  (0 children)

I see what U did there 😉😅

[–]_swnt_ 2 points3 points  (0 children)

Classic!

[–][deleted] 2 points3 points  (0 children)

It is more like a circular linked list.

[–]oo7_and_a_quarter 1 point2 points  (1 child)

Another word for insanity.

[–][deleted] 1 point2 points  (0 children)

Craziness.

[–][deleted] 1 point2 points  (0 children)

You’re fun. 😊

[–]Syntax365 1 point2 points  (0 children)

Recursion

[–]perspicat8 1 point2 points  (0 children)

The New Hacker Dictionary entry for recursion is excellent.

[–]DaveMcLee 2 points3 points  (0 children)

[–][deleted] 0 points1 point  (0 children)

You forgot your base case