3 ms·
(function(){var k=[];return function j(){k.push(i);j();}})()(); Love it, but what that code says to me is Stack Overflow. But I'll reinterpret it to mean Mind
by SkyMarshal 15y ago
(function(){var k=[];return function j(){k.push(i);j();}})()();
Love it, but what that code says to me is Stack Overflow. But I'll reinterpret it to mean Mind = Blown by all the random cool things you learn in this field (infinite data structures in Haskell being the most recent one for me).
PS - I couldn't help running it in the Node REPL:
> i = 1;
1
> (function(){var k=[];return function j(){k.push(i);j();}})()();
RangeError: Maximum call stack size exceeded
Lol :) Seriously though, you may be on to something.
- yread 15y agoStack overflow because we are all mortal. Filling of the stack can be fun though
- gojomo 15y agoPerhaps he's hoping Skynet will mistakenly eval() its inputs when scanning him into the human work camps.
- Periodic 15y agoOur best defense: code injection attacks.
- sesqu 15y agoThis bit really bothered me. I would have suggested some ooda-loop construct, instead. That said, it's not my tattoo.