Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:50283 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 18192 invoked from network); 17 Nov 2010 03:10:36 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 17 Nov 2010 03:10:36 -0000 Authentication-Results: pb1.pair.com header.from=guilhermeblanco@gmail.com; sender-id=pass; domainkeys=bad Authentication-Results: pb1.pair.com smtp.mail=guilhermeblanco@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.214.170 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: guilhermeblanco@gmail.com X-Host-Fingerprint: 209.85.214.170 mail-iw0-f170.google.com Received: from [209.85.214.170] ([209.85.214.170:57988] helo=mail-iw0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 42/54-25421-BA743EC4 for ; Tue, 16 Nov 2010 22:10:36 -0500 Received: by iwn41 with SMTP id 41so1695261iwn.29 for ; Tue, 16 Nov 2010 19:10:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=HAO1CjsDLl31NkS4Jf6M3BP4jMxAtINpxbZoHf6Jcts=; b=ZWekKe7mI15z345fUP2qc1qaOLAT00Q+D1ThFH4PJMwIQU4NAefT4l4oiB0P2v0Vv/ 2mchFMQWX0ghuxBO2iHnAyuv3nve/Ke15NujUOPfxnbZuBL9CpwQEE8DJzKl/k7GQ7B1 AJA0Ld3IJsaomj2EOq0P8DU1CI3dI6aUUDHyo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=TQb5CiY2vyomKg55oK4l8EO16D8sjvHXcn5XvCk7ctnIpXYB1zGm53PNDp4wFsxyR8 bv1yrAnG+GDg3tzHBmd7lQkmkELp4j3Z/Cp39pXdza+z+UwnAALayvZ9fhckVNW0l8uw tQSM7s2JRUCZSlRkgINbCNjJnRHCTax53LImM= MIME-Version: 1.0 Received: by 10.231.19.136 with SMTP id a8mr6583745ibb.6.1289963432008; Tue, 16 Nov 2010 19:10:32 -0800 (PST) Received: by 10.42.169.194 with HTTP; Tue, 16 Nov 2010 19:10:31 -0800 (PST) In-Reply-To: References: <887FE7CFF6F8DE4BB3A9535F53AFD06A2C59B588@il-ex2.zend.net> <887FE7CFF6F8DE4BB3A9535F53AFD06A2C59B6A0@il-ex2.zend.net> <887FE7CFF6F8DE4BB3A9535F53AFD06A2C59D788@il-ex2.zend.net> <4CE335CE.90904@sugarcrm.com> Date: Wed, 17 Nov 2010 01:10:31 -0200 Message-ID: To: Gustavo Lopes Cc: internals@lists.php.net Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] PHP 5.4 - Meta attribute (aka. Annotations) support discussion From: guilhermeblanco@gmail.com ("guilhermeblanco@gmail.com") Hi Gustavo, Normal instantiation cannot be done. Here is a sample where it would fail: new Foo() class User { ... } So it must be something different. []s, On Wed, Nov 17, 2010 at 1:07 AM, Gustavo Lopes wro= te: > On Wed, 17 Nov 2010 01:54:22 -0000, Stas Malyshev > wrote: > >> The problem is not new syntax per se. The problem is new syntax for thin= gs >> that already have old syntax. > > This is incontestably false. Although a big portion of the use cases can > awkwardly use the user-space parsed and interpreted docblocks, I'm more > interested in the potential for applications that require the engine to > parse to annotations (like in the patch, not doing it on demand for > bocblocks) and, for a select few, act upon them. > > Your preoccupation with the cost of adding new syntax is reasonable and t= he > patch goes too far, but surely we could iron out those details later. May= be > even just preceding the class/method/whatever declaration with an annotat= ion > expressed with normal object instantiation syntax?... > > -- > Gustavo Lopes > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > > --=20 Guilherme Blanco Mobile: +55 (16) 9215-8480 MSN: guilhermeblanco@hotmail.com S=C3=A3o Paulo - SP/Brazil