Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

proof that lisp is a toy language

Name: Anonymous 2007-10-25 9:25

it can't even do this:
function fib(n){
 return (function(i){
   return i==1?0:arguments.callee(i-1)+(function(i){
    return i==1?1:arguments.callee.caller(i-1)
   })(i-1)
  })(n+1)
}

Name: Anonymous 2007-10-25 10:48

>>5
that still doesn't let you do what arguments.callee.caller.caller or arguments.callee.caller.caller.caller does in javascript.

also, >>2 fails for not using mutual recursion.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List