Re: Attributes support proposal
| From: | Hendy Irawan | Date: | Mon, 18 Apr 2005 13:17:43 +0000 |
| Subject: | Re: Attributes support proposal | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-15992@lists.php.net to get a copy of this message | ||
On 4/18/05, Wez Furlong <kingwez@gmail.com> wrote:
> PHP has interfaces for this kind of thing, and they're clearer/cleaner
> to use than the code you've posted (for this case at least).
Yea, I completely agree.
> I'm not against the idea per-se, I just can't see a really good reason
> to justify it.
I hate to say this, but these ideas come from the "outside world":
- NUnit testing for .NET uses [Test] and [SetUp] attributes instead of
hardcoding method names (like test*, setUp, in xUnit test frameworks)
- ASP.NET uses WebMethod attribute for automatically exposing XML Web Services
- Aspect#.NET uses attributes for aspect oriented programming stuff
Speaking of AOP, I wonder if AOP features will ever be possible in PHP
(I guess this deserves another thread, maybe I'll have to search
archives first...)
--
Hendy Irawan
http://www.gauldong.net
http://dev.gauldong.net