Re: RFC: Add a deprecated modifier for functions

From: Date: Wed, 26 Dec 2012 14:28:48 +0000
Subject: Re: RFC: Add a deprecated modifier for functions
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-64436@lists.php.net to get a copy of this message
On Wed, Dec 26, 2012 at 4:22 PM, Yussuf Khalil <dev@pp3345.de> wrote: > Hello, > > I have created an RFC about adding a deprecated modifier for functions in > PHP, see > https://wiki.php.net/rfc/**deprecated-modifier<https://wiki.php.net/rfc/deprecated-modifier>. > What are your thoughts on this? > > Thank you, > Yussuf Khalil > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > > Hi! I think the idea of marking functions as deprecated is great and the current way of throwing E_DEPRECATED error by trigger_error can be improved. In the current state. That's being said, I don't think that adding a deprecated keyword is the solution, since now we can write documentation and set a "@deprecated" mark. I think, that the best solution is the attributes concept that was rejected before and should be re-considered after the last releases changes and language improvements. A few built in attributes, such as <Deprecated> can be great. What do you think?

« previous php.internals (#64436) next »