This page is no longer maintained — Please continue to the home page at www.scala-lang.org

Re: Self reference for Closures

2 replies
milessabin
Joined: 2008-08-11,
User offline. Last seen 33 weeks 3 days ago.

On Fri, Mar 20, 2009 at 11:41 PM, Ricky Clarkson
wrote:
> I find it quite amusing that:

Y do you find that amusing?

Cheers,

Miles

Ishaaq Chandy
Joined: 2009-02-16,
User offline. Last seen 42 years 45 weeks ago.
Re: Self reference for Closures
I feel like I'm missing some inside joke here.
That code is definitely ugly Java code - but why is it amusing? And how does it relate to this thread? Can someone please enlighten me?

Ishaaq

2009/3/21 Miles Sabin <miles@milessabin.com>
On Fri, Mar 20, 2009 at 11:41 PM, Ricky Clarkson
<ricky.clarkson@gmail.com> wrote:
> I find it quite amusing that:

Y do you find that amusing?

Cheers,


Miles

--
Miles Sabin
tel:    +44 (0)1273 720 779
mobile: +44 (0)7813 944 528
skype:  milessabin

milessabin
Joined: 2008-08-11,
User offline. Last seen 33 weeks 3 days ago.
Re: Self reference for Closures

On Sat, Mar 21, 2009 at 11:34 AM, Ishaaq Chandy wrote:
> I feel like I'm missing some inside joke here.
> That code is definitely ugly Java code - but why is it amusing? And how does
> it relate to this thread? Can someone please enlighten me?

Jorge showed an encoding in Scala of the Y combinator,

http://en.wikipedia.org/wiki/Y_combinator

Maybe I misread Ricky's post but he seemed to be implying that the
Java he posted was a simpler alternative ... which it only would be if
you completely missed the point of Jorge's.

Hmm ... it wasn't a very funny joke in the first place ... now it's
completely dead ;-)

Cheers,

Miles

Copyright © 2012 École Polytechnique Fédérale de Lausanne (EPFL), Lausanne, Switzerland