Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!gegeweb.org!newsfeed.kamp.net!newsfeed0.kamp.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: Robert Klemme Newsgroups: comp.lang.ruby Subject: Re: Enumerable#find returns an enumerator? Date: Wed, 11 May 2011 19:13:58 +0200 Lines: 27 Message-ID: <92vuemFgn8U1@mid.individual.net> References: <6cc262653e3f003816a98ce87fb22fdf@ruby-forum.com> <27A11B59-1AEB-41F3-A0E0-3BB91AC7156A@gmx.de> <92toltFmedU1@mid.individual.net> <635c009384ea6d830f916df6d4d8f443@ruby-forum.com> <5a959b8449604bc8dabae9e136ec0cbb@ruby-forum.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: individual.net Ac8xl7ccxTvLG6G+ZwUL3QB+bFGBnOvLBUjEscZjCdizbLCnY= Cancel-Lock: sha1:M5h1RhUEA0FOj5r1rPOoUCe0RUI= User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.12) Gecko/20101027 Lightning/1.0b2 Thunderbird/3.1.6 In-Reply-To: <5a959b8449604bc8dabae9e136ec0cbb@ruby-forum.com> Xref: x330-a1.tempe.blueboxinc.net comp.lang.ruby:4278 On 05/11/2011 02:47 PM, Brian Candler wrote: > Robert K. wrote in post #997944: >> Yes, but that was not the point. I was explicitly talking about the >> semantics of the argument to #find. > > You said: "here documentation is clear. Why do so many people tell > different stories if it is so easy to read this up in documentation?" > > And my answer is: maybe because the documentation is so poor. Ah, OK *now* you said it. > Your example demonstrates this, because ri doesn't mention about > Enumerable#find returning an Enumerator, which is what the original > question was. > > Admittedly, the errors are usually of omission, rather than being > actually wrong. This particular one has been fixed in 1.9.2, but not > backported to 1.8.7p299 (at least) While we talk about omission: I really couldn't figure that from your first posting. :-) Kind regards robert