Re: deprecating
| From: | Helgi Þormar | Date: | Tue, 19 Jul 2005 17:24:48 +0000 |
| Subject: | Re: deprecating | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-38726@lists.php.net to get a copy of this message | ||
On Tue, 2005-07-19 at 10:11 -0700, Joe Stump wrote:
> OK,
>
> On another note, what if I have an old package (I do) that has a
> function named foo_bar(). This package has only one stable release
> (0.2) and one beta release (1.0.1beta). Can I deprecate foo_bar(),
> have it call fooBar() and then throw a notice that it's deprecated
> when it's used?
>
> If so, then how long do I have to wait to finally remove the
> deprecated function? One release? Two?
Just keep the old one around ?
Make the old one call the new one.
Shouldn't be hard to do some proxy kind of things to keep BC and still
have new functions that superseed the old ones.
- Helgi