Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:64732 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 94428 invoked from network); 9 Jan 2013 12:13:19 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 9 Jan 2013 12:13:19 -0000 Authentication-Results: pb1.pair.com header.from=v.veselinov@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=v.veselinov@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 74.125.82.54 as permitted sender) X-PHP-List-Original-Sender: v.veselinov@gmail.com X-Host-Fingerprint: 74.125.82.54 mail-wg0-f54.google.com Received: from [74.125.82.54] ([74.125.82.54:49487] helo=mail-wg0-f54.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 1A/15-02684-DDE5DE05 for ; Wed, 09 Jan 2013 07:13:18 -0500 Received: by mail-wg0-f54.google.com with SMTP id fg15so960750wgb.21 for ; Wed, 09 Jan 2013 04:13:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=T10zbVjpW3jUd7qwQrLUsT+xgEGM5gkHNuA+xzI4eAI=; b=L5CZ4EGexWptYg1SJt96UTno8ggMtxR1+tigNgCmHipH1e0Fd8x1fMc9WJtiLv9TNV 7icx5XYouA7LXdrOIE3EjT51w21WrJcpwhZPXs256t0Wwh+XwIcN21dNfzDi11mkv05q U2KXnkLZJrOF46BhufH2Ucr6QNg0zU7Di+vLaOZrKe3fWcngyCj3LVeJgo5QhoHHOa4O jlnx5kzyz7M1LI1XKVa7FcbxR8fLa3mwYdlnmAAO4Ka7cO5NPl2QoxVkfJsmolZ+7KOf w4TxoLptN4XxXvvRr0yqkPRaYgbYYkaw82k/MNBHPQrzHJ/nxHVBX5YTQ4uCjK6pYgWM NuBw== MIME-Version: 1.0 Received: by 10.194.108.101 with SMTP id hj5mr10415543wjb.6.1357733594852; Wed, 09 Jan 2013 04:13:14 -0800 (PST) Received: by 10.194.78.106 with HTTP; Wed, 9 Jan 2013 04:13:14 -0800 (PST) In-Reply-To: References: <50EBDEEE.8070605@sugarcrm.com> Date: Wed, 9 Jan 2013 14:13:14 +0200 Message-ID: To: Derick Rethans Cc: Pierrick Charron , Stas Malyshev , Rasmus Schultz , "internals@lists.php.net" Content-Type: text/plain; charset=ISO-8859-1 Subject: Re: [PHP-DEV] [RFC] Reflection annotations reader From: v.veselinov@gmail.com (Vladislav Veselinov) Taken from the Doctrine documentation: wrote: > On Tue, 8 Jan 2013, Pierrick Charron wrote: > >> On 8 January 2013 03:55, Stas Malyshev wrote: >> >> > On the contrary, plenty of implementations means there's a need in >> > this functionality, and it might be a good idea to have one standard >> > implementation if it can cover like 80% of use cases. > > Good luck with that! I've seen so many different syntaxes for docblock > "annotations" out there that I doubt you can do this. > >> I agree, there is a need in this functionality, but all those userland >> implementations were at the first place made because this >> functionality was not part of the language. I think docblocks is not >> the solution, doc blocks are just comments, and I would expect any >> code to work the same way if I remove my comments. > > Actually, docblocks are handled by the parser. And whether "annotations" > come in the form of such a docblock with a specific syntax, or without > with a special new syntax outside of docblocks makes no difference at > all. > > And really, nobody can convince me that we would need stuff like: > > @MyApp\Acl({ > "allow"=@MyApp\Acl\Allow({"john"="read", "joe"="write"}), > "deny"=@OtherApp\Acl\Deny(default="*", log=true) > }) > > cheers, > Derick > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php >