Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!news.stack.nl!talisker.lacave.net!lacave.net!not-for-mail From: Fearless Fool Newsgroups: comp.lang.ruby Subject: Re: scope of assignments with lambda Date: Thu, 14 Apr 2011 23:52:54 -0500 Organization: Service de news de lacave.net Lines: 16 Message-ID: References: <5ab8b94d707235d7b83c9b011b696ef4@ruby-forum.com> <2b8e0c638f80e0062cbba1f68ca297d8@ruby-forum.com> <470a9e96982d7a927f140193f12c0f64@ruby-forum.com> NNTP-Posting-Host: bristol.highgroove.com Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Trace: talisker.lacave.net 1302843190 41638 65.111.164.187 (15 Apr 2011 04:53:10 GMT) X-Complaints-To: abuse@lacave.net NNTP-Posting-Date: Fri, 15 Apr 2011 04:53:10 +0000 (UTC) In-Reply-To: X-Received-From: This message has been automatically forwarded from the ruby-talk mailing list by a gateway at comp.lang.ruby. If it is SPAM, it did not originate at comp.lang.ruby. Please report the original sender, and not us. Thanks! For more details about this gateway, please visit: http://blog.grayproductions.net/categories/the_gateway X-Mail-Count: 381604 X-Ml-Name: ruby-talk X-Rubymirror: Yes X-Ruby-Talk: Xref: x330-a1.tempe.blueboxinc.net comp.lang.ruby:2914 7stud -- wrote in post #988797: >> @7stud: Pardon if I wasn't clear in my OP, but I was asking about >> recursion. > My point was that a recursive method seems harder to explain than your > lambda example. As you detailed, your lambda example can be explained > by a closure. Yeah, well, I apologize, but that was my typo. I meant "I *wasn't* asking about recursion". (And no, recursion doesn't seem particularly difficult to explain, does it?!? :) - ff -- Posted via http://www.ruby-forum.com/.