On 2/17/07, Stefan Rusterholz <apeiros / gmx.net> wrote:
> Gregory Brown wrote:
> > the difference is in the rescue.
> >
> > rescue NoMethodError
> >
> > is not the same thing as
> >
> > rescue NotImplementedError
>
> That's getting off-topic. The error dup gives is "not possible", not
> "not implemented". Different story.
> If you check previous messages you might figure that I can understand
> the use in abstract classes (or mixins here) even though I'd do it
> differently.

Actually, My point was about expressiveness through exceptions.
That is what you seem to be missing

>> 3.dup
TypeError: can't dup Fixnum
        from (irb):1:in `dup'
        from (irb):1

TypeError is different than NoMethodError.  In this case, it is
expressive of what is actually going wrong.  Again, the difference is
in the rescue.