IWETHEY v. 0.3.0 | TODO
1,095 registered users | 0 active users | 0 LpH | Statistics
Login | Create New User
IWETHEY Banner

Welcome to IWETHEY!

New Without being rude...
...what the devil IS that thing?


Peter
[link|http://www.ubuntulinux.org|Ubuntu Linux]
[link|http://www.kuro5hin.org|There is no K5 Cabal]
[link|http://guildenstern.dyndns.org|Home]
Use P2P for legitimate purposes!
New A recursive anonymous function...
...that takes a function as an argument and returns the function applied to the original function. Or in lambda terminology:

   λx.x(λx)

[edit: The Y combinator is a good test of how well closures are implemented].
Expand Edited by ChrisR Feb. 16, 2005, 03:23:52 PM EST
New Is it just interesting, or is it useful?
I would imagine such a thing would have to be carefully used if one is to avoid unpleasant runaway circumstances.


Peter
[link|http://www.ubuntulinux.org|Ubuntu Linux]
[link|http://www.kuro5hin.org|There is no K5 Cabal]
[link|http://guildenstern.dyndns.org|Home]
Use P2P for legitimate purposes!
New Well, in Java it's pretty useless.
New It's a pretty basic feature found in functional languages
like haskell. How useful it would be in the context of a language like java, I don't know. You might make it part of an interpreter for a functional language implemented in java...
--\n-------------------------------------------------------------------\n* Jack Troughton                            jake at consultron.ca *\n* [link|http://consultron.ca|http://consultron.ca]                   [link|irc://irc.ecomstation.ca|irc://irc.ecomstation.ca] *\n* Kingston Ontario Canada               [link|news://news.consultron.ca|news://news.consultron.ca] *\n-------------------------------------------------------------------
     OT: Inner/outer classes. - (pwhysall) - (30)
         Simple explanation: - (admin)
         Wheras an "outer" class is just an ordinary class. -NT - (CRConrad)
         There's some other types as well - (ChrisR)
         Also how Java fakes friendship - (tuberculosis)
         Inner class is declared inside another class - (Arkadiy)
         Thanks all - (pwhysall) - (24)
             Re: Thanks all - (systems) - (23)
                 You misunderstand, on at least one issue: - (CRConrad) - (1)
                     No, they can be used as factories as well. - (admin)
                 s/callbacks/delegates/g - (ChrisR) - (3)
                     Yep, one of the uglier useful things in Java. :-P -NT - (admin)
                     ICLRPD (new thread) - (drewk)
                     Great - another perfectly good term hijacked and hosed (new thread) - (tuberculosis)
                 You can't do #3 - (ben_tilly) - (3)
                     For most uses... - (admin) - (2)
                         I did find that interesting. One major complaint down. - (ben_tilly) - (1)
                             You'll find this interesting too - Bistro - (tuberculosis)
                 They sorta stink as closures - (Arkadiy) - (12)
                     You need Jim Weirich's... - (ChrisR) - (11)
                         Without being rude... - (pwhysall) - (4)
                             A recursive anonymous function... - (ChrisR) - (3)
                                 Is it just interesting, or is it useful? - (pwhysall) - (2)
                                     Well, in Java it's pretty useless. -NT - (ChrisR)
                                     It's a pretty basic feature found in functional languages - (jake123)
                         Re: You need Jim Weirich's... - (JimWeirich) - (5)
                             I've just followed the first step of execution - (Arkadiy) - (4)
                                 I understand it! - (ben_tilly) - (3)
                                     Read it out loud - (drewk) - (1)
                                         I detect glazed over eyes - (ben_tilly)
                                     This was as brilliant an explanation as I've ever seen - (Arkadiy)

It's like an ee cummings poem written using only the usernames a website suggests when the one you want is taken.
59 ms