Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:15992 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 63292 invoked by uid 1010); 18 Apr 2005 13:17:47 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 63277 invoked from network); 18 Apr 2005 13:17:47 -0000 Received: from unknown (HELO brars.org.uk) (127.0.0.1) by localhost with SMTP; 18 Apr 2005 13:17:47 -0000 X-Host-Fingerprint: 64.233.170.193 rproxy.gmail.com Linux 2.4/2.6 Received: from ([64.233.170.193:40612] helo=rproxy.gmail.com) by pb1.pair.com (ecelerity 1.2.12rc1 r(5476:5477)) with SMTP id B9/C7-18700-A73B3624 for ; Mon, 18 Apr 2005 09:17:46 -0400 Received: by rproxy.gmail.com with SMTP id b11so907251rne for ; Mon, 18 Apr 2005 06:17:43 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=uqoLJCL59xHEv7QncNOaNLG4Kvbwk/jSsCAgmtGKp4OJOyW9DSyJpCW/prEZDNHPx5njJ8WUX+GO1sHrmsP0wsdEQW7OGVljSRQRxp1Foo3pL5UReDvkxTxWq3wQFNRWLmbZPOER258RwY/2z2ysF9KwDeZCtgNJc8BgGl96hoo= Received: by 10.38.68.14 with SMTP id q14mr5591867rna; Mon, 18 Apr 2005 06:17:43 -0700 (PDT) Received: by 10.38.9.78 with HTTP; Mon, 18 Apr 2005 06:17:43 -0700 (PDT) Message-ID: <3c4c8fa60504180617655b5fa2@mail.gmail.com> Date: Mon, 18 Apr 2005 20:17:43 +0700 Reply-To: garbageman@gauldong.net To: Wez Furlong Cc: Duncan McIntyre , internals@lists.php.net In-Reply-To: <4e89b4260504180526455dabba@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <200504181319.56004.duncan@calligram.co.uk> <4e89b4260504180526455dabba@mail.gmail.com> Subject: Re: [PHP-DEV] Attributes support proposal From: gauldong@gmail.com (Hendy Irawan) On 4/18/05, Wez Furlong 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 Servi= ces - 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...) --=20 Hendy Irawan http://www.gauldong.net http://dev.gauldong.net