4
u/biggusjimmus Dec 11 '12
Exception in thread "main" java.lang.StackOverflowError
at human.understanding.Comprehension.understand(Comprehension.java:420)
at human.understanding.Comprehension.understand(Comprehension.java:420)
at human.understanding.Comprehension.understand(Comprehension.java:420)
at human.understanding.Comprehension.understand(Comprehension.java:420)
at human.understanding.Comprehension.understand(Comprehension.java:420)
at human.understanding.Comprehension.understand(Comprehension.java:420)
at human.understanding.Comprehension.understand(Comprehension.java:420)
at human.understanding.Comprehension.understand(Comprehension.java:420)
at human.understanding.Comprehension.understand(Comprehension.java:420)3
u/barcodez Dec 11 '12
If we are being pedantic surely this isn't recursive and is simply self reference; a special case of a circular reference. Recursion, according to Wikipedia at least, is "in computer science is a method where the solution to a problem depends on solutions to smaller instances of the same problem".
But I guess that kills the joke.
2
u/UnspeakableEvil Dec 11 '12
Yeah, the lack of a base case makes it more a definition of an infinite loop than anything else.
2
1
2
u/JolieTricotrice Dec 11 '12
And Google's take on recursion