[prev in list] [next in list] [prev in thread] [next in thread]
List: ruby-talk
Subject: Re: Is better to subclass or to add methods to an existing class?
From: "Christoph" <chr_news () gmx ! net>
Date: 2002-09-19 20:42:03
[Download RAW message or body]
"Paul Brannan"
....
> 1) He is right that adding methods to an already-defined class is
> generally a bad idea. There are some valid reasons to do that, but
> 99% of the time there is an alternative.
Well I generally try to avoid this too - but I don't believe that there
is a very strong case against this (well as long as your code isn't
intended as an extension for general consumption).
/Christoph
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic