Hacker News new | ask | show | jobs
by Pxtl 4542 days ago
This one I sing to my kids:

"Old MacDonald had a farm,

E-I-E-I-O

And on that farm he had an infinite recursion

E-I-E-I-O

With an

Old MacDonald had a farm,

E-I-E-I-O

And on that farm he had an infinite recursion ..."

1 comments

an infinite loop
I think he went with recursion so that it would eventually terminate, when he runs out of memory.
it loops when you get to "With An", not that you get through the whole verse.

That is, the cow says "Moo", the sheep says "baa", and the infinite recursion says "That is, the cow says "Moo", the sheep says "baa", and the infinite recursion says "That is, the cow says "Moo", the sheep says "baa", and the infinite recursion says "That is, the cow says "Moo", the sheep says "baa", and the infinite recursion says "That is, the cow says "Moo", the sheep says "baa", and the infinite recursion says StackOverflowException was unhandled

An unhandled exception of type

'System.StackOverflowException' occurred in Pxtl.dll

Make sure you do not have an infinite loop or infinite recursion.