[#11439] comments needed for Random class — "NAKAMURA, Hiroshi" <nakahiro@...>

-----BEGIN PGP SIGNED MESSAGE-----

15 messages 2007/06/12

[#11450] Re: new method dispatch rule (matz' proposal) — David Flanagan <david@...>

This is a late response to the very long thread that started back in

17 messages 2007/06/13

[#11482] Ruby Changes Its Mind About Non-Word Characters — James Edward Gray II <james@...>

Does this look like a bug to anyone else?

10 messages 2007/06/16

[#11505] Question about the patchlevel release cycle — Sylvain Joyeux <sylvain.joyeux@...4x.org>

1.8.6 thread support was broken in bad ways. It stayed for three months

20 messages 2007/06/20
[#11512] Re: Question about the patchlevel release cycle — Urabe Shyouhei <shyouhei@...> 2007/06/20

Hi, I'm the 1.8.6 branch manager.

[#11543] Re: Apple reportedly to ship with ruby 1.8.6-p36 unless informed what to patch — James Edward Gray II <james@...>

On Jun 27, 2007, at 4:47 PM, Bill Kelly wrote:

10 messages 2007/06/27

Re: method_missing for Enumerator

From: TRANS <transfire@...>
Date: 2007-06-25 19:15:36 UTC
List: ruby-core #11536
On 6/25/07, Rick DeNatale <rick.denatale@gmail.com> wrote:
> On 6/25/07, Yukihiro Matsumoto <matz@ruby-lang.org> wrote:
> > Hi,
> >
> > In message "Re: method_missing for Enumerator"
> >     on Mon, 25 Jun 2007 07:04:55 +0900, TRANS <transfire@gmail.com> writes:
> >
> > |What do others think of this for 1.9+?
> >
> > |Seems safe enough to me. Am I right in thinking this? Yes, there is
> > |some potential for uncaught NoMethodErrors, of course, but given the
> > |nature of this, that should be pretty rare.
> >
> > Although I really love the idea like this, this is too dangerous for
> > core functionality.  I'd rather see something in hacking library, such
> > as Facets or ActiveSupport.
> >
>
> I had the same reaction.  There are issues with how you compose uses
> of method_missing.
>
> Note that rspec had to do away with using method_missing because it
> and activerecord were 'fighting' over it.
>
> http://blog.davidchelimsky.net/articles/2007/01/10/rspec-should-use_a_little_less_magic

It doesn't explain how the conflict was arising. It's usually pretty
easy to avoid conflicts --as long as the set of methods don't overlap.
You simply alias the original method_missing and use it as a fallback.
RSpec's old syntax was fundamentally flawed (a bad idea they got from
Rails!) and unfortunately the new syntax isn't much better either.
Anyway, I digress.

In the case of Enumerator, it's is not an issue since this represents
a core functionality, not some meta-debugging add-on.

Thanks,
T.

In This Thread