Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:52179 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 3625 invoked from network); 9 May 2011 18:53:35 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 9 May 2011 18:53:35 -0000 Authentication-Results: pb1.pair.com smtp.mail=guilhermeblanco@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=guilhermeblanco@gmail.com; sender-id=pass; domainkeys=bad Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.213.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.213.170 mail-yx0-f170.google.com Received: from [209.85.213.170] ([209.85.213.170:58689] helo=mail-yx0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 9B/51-20726-E2838CD4 for ; Mon, 09 May 2011 14:53:35 -0400 Received: by yxi11 with SMTP id 11so2328871yxi.29 for ; Mon, 09 May 2011 11:53:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-type:content-transfer-encoding; bh=dD9XtbJmf5tWJq4QNfRL4uO6ntdcpVZGYr0hfiIr9do=; b=feea+/pgQeCiYiOxyb/5Thpr7k91o32PPj/G26r4qptJmiWobP/+gqPJELj9LLq9KZ G3p+n5LNmGpVfU8ziIh4baEJYUV+dbPc7lPSQv/0dPcdkqxIl0drQL+TqY/C6w7TQ6VF vh7n/HjKRv4K+VJQHYTXBI16cad8vbG+4aLX4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; b=ITMYdLS2FDb9j8B9YlwD3OneuU0wtDBheFRe5Vq7aLmwPAL0awO1UEhf+6xt09JI+F 09ZxDqL1XLWtzExKrEYV0SarHMXkUGcEYdnACUBYfnA0vzP248mFQflzB4Pe38HjLrg7 DwwjlKekcBdJfi6FXm7PY+UVtSMFto/gJC8VQ= Received: by 10.151.77.4 with SMTP id e4mr5768229ybl.147.1304967212096; Mon, 09 May 2011 11:53:32 -0700 (PDT) MIME-Version: 1.0 Received: by 10.147.171.4 with HTTP; Mon, 9 May 2011 11:53:12 -0700 (PDT) In-Reply-To: <4DC83401.2090202@sugarcrm.com> References: <4DC826B1.4090806@lerdorf.com> <4DC82A36.8090604@lerdorf.com> <4DC83401.2090202@sugarcrm.com> Date: Mon, 9 May 2011 15:53:12 -0300 Message-ID: To: Stas Malyshev Cc: PHP Internals Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] annotations again From: guilhermeblanco@gmail.com ("guilhermeblanco@gmail.com") Hi Stas, Comments inline. On Mon, May 9, 2011 at 3:35 PM, Stas Malyshev wrot= e: > Hi! > >> If possible, could you look at the patch and give me high level ideas >> of what could be changed? > > If the patch is the same RFC that is at > https://wiki.php.net/rfc/annotations, the same problems that were voiced = a > number of times on the list stay: > Currently it's not. When I was going to update it, wiki went offline. > - it is overly complex (see class User example - it's really a piece of > code, I think it should be in the code) That's just an example. I'll simplify it. The main point there was to illustrate the ability to support nested annotations. Exmaple using @: @A(@B) > - it introduces method call syntax not compatible with the rest of PHP > - it introduces object instantiation syntax not compatible with the rest = of > PHP This is already fixed. @A(@B) would require class A like this: class A { public function __construct(B $b) { ... } } class B {} > > These issues were mentioned before - were they fixed? So your short answer is yes. =3D) > The RFC also does not clarify where the code contained in annotations is = run > and how it would play with bytecode caches. Sorry, this was one of the things that I was going to update. I'll include it too. > -- > Stanislav Malyshev, Software Architect > SugarCRM: http://www.sugarcrm.com/ > (408)454-6900 ext. 227 > --=20 Guilherme Blanco Mobile: +55 (16) 9215-8480 MSN: guilhermeblanco@hotmail.com S=C3=A3o Paulo - SP/Brazil