Stack overflow code golf
Posted
by Chris Jester-Young
on Stack Overflow
See other posts from Stack Overflow
or by Chris Jester-Young
Published on 2008-09-15T11:17:38Z
Indexed on
2010/04/21
1:03 UTC
Read the original article
Hit count: 404
To commemorate the public launch of Stack Overflow, what's the shortest code to cause a stack overflow? Any language welcome.
ETA: Just to be clear on this question, seeing as I'm an occasional Scheme user: tail-call "recursion" is really iteration, and any solution which can be converted to an iterative solution relatively trivially by a decent compiler won't be counted. :-P
ETA2: I've now selected a “best answer”; see this post for rationale. Thanks to everyone who contributed! :-)
© Stack Overflow or respective owner