Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Functional > Re: the necessi...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 2 of 3 Topic 2763 of 2904
Post > Topic >>

Re: the necessity of Lisp's Objects?

by "David Formosa (aka ? the Platypus)" <dformosa@[EMAIL PROTECTED] > Feb 10, 2008 at 08:08 PM

["Followup-To:" header set to comp.lang.lisp.]
On Sun, 10 Feb 2008 14:36:37 +0100, Joost Diepenmaat <joost@[EMAIL PROTECTED]
>
wrote:
[...]
> One language I know that directly sup****ts anonymous recursion (without
> Y-combinator) is JavaScript:
>
> var fib = function(i) {
>   if (i == 0 || i == 1) return 1;
>   return (arguments.callee.call(null,i-1) +
arguments.callee.call(null,i-2));
>};

Likewise perl sup****ts it.

my $fib;
$fib = sub {
  my $i = ****ft;
  return 1 if ($i <= 1);
  return $fib->($i-2) + $fib($i-1);
};
 




 3 Posts in Topic:
Re: the necessity of Lisp's Objects?
Joost Diepenmaat <joos  2008-02-10 14:36:37 
Re: the necessity of Lisp's Objects?
"David Formosa (aka   2008-02-10 20:08:45 
Re: the necessity of Lisp's Objects?
Ken Tilton <kennytilto  2008-02-10 16:18:03 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Fri Jul 18 20:39:42 CDT 2008.