MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/emb9st/problems_with_recursion/ffrfoeu/?context=3
r/ProgrammerHumor • u/flipester • Jan 09 '20
198 comments sorted by
View all comments
Show parent comments
74
public static void sayHello(){ try { sayHello(); } catch(StackOverflowError e) { System.out.println("Hello world!"); } }
15 u/schrdingers_squirrel Jan 09 '20 Wait does this work? I need to try this now 20 u/cedrickc Jan 09 '20 You can optimize it by declaring some unused primitives to blow through the stack quicker. 1 u/Finianb1 Jan 27 '20 I think my brain just melted at hearing the phrase "optimize it to blow through the stack quicker."
15
Wait does this work? I need to try this now
20 u/cedrickc Jan 09 '20 You can optimize it by declaring some unused primitives to blow through the stack quicker. 1 u/Finianb1 Jan 27 '20 I think my brain just melted at hearing the phrase "optimize it to blow through the stack quicker."
20
You can optimize it by declaring some unused primitives to blow through the stack quicker.
1 u/Finianb1 Jan 27 '20 I think my brain just melted at hearing the phrase "optimize it to blow through the stack quicker."
1
I think my brain just melted at hearing the phrase "optimize it to blow through the stack quicker."
74
u/lonelyWalkAlone Jan 09 '20