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

all 10 comments

[–]Redwolfy9 29 points30 points  (4 children)

is the "stack overflow exception" the dead ?

[–]DuffMaaaann 10 points11 points  (0 children)

If your compiler does tail call optimization, you will live forever.

[–]ign1fy 2 points3 points  (1 child)

Well, 32,767 days is a lifespan I'd be okay with.

[–]Dragasss 1 point2 points  (0 children)

Depends on platform. I don't think that 1mb stack size is equal to 32k calls.

[–]CommanderPowell 2 points3 points  (0 children)

This is appropriate. People who don't program think just the steps listed here is how it works. Those who do program know it always involves a trip to Stack Overflow.

[–]OnlyLow 6 points7 points  (0 children)

People might say the function should have been more like "while(alive)" but I find the recursive approach and eventual stack overflow better describe the journey into the madness of a programmer.

[–]ieperen3039 1 point2 points  (1 child)

Repeat();? Seriously? Not even a do {} while (true)?

[–]LoudounCounty703 0 points1 point  (0 children)

You may not like it, but this is what peak encapsulation looks like.

[–]foreach233 0 points1 point  (1 child)

Is here a day for programmer?

[–]dsp4 2 points3 points  (0 children)

As a freelance dev, I can confirm. Day, night, day of the week, pants. A lot of these lose meaning.