Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:78605 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 14531 invoked from network); 3 Nov 2014 23:15:01 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 3 Nov 2014 23:15:01 -0000 Authentication-Results: pb1.pair.com header.from=ua.san.alex@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=ua.san.alex@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.213.195 as permitted sender) X-PHP-List-Original-Sender: ua.san.alex@gmail.com X-Host-Fingerprint: 209.85.213.195 mail-ig0-f195.google.com Received: from [209.85.213.195] ([209.85.213.195:42123] helo=mail-ig0-f195.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id D7/27-10620-27C08545 for ; Mon, 03 Nov 2014 18:15:00 -0500 Received: by mail-ig0-f195.google.com with SMTP id l13so1617852iga.6 for ; Mon, 03 Nov 2014 15:14:55 -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=uRnMoFVtFti9KUAMJM50Io0QxuzlSzvltqPlFJS5na0=; b=hUvw/bEs5X8JsLoGM+z3cHrhjUz+GoQLACWLbXUEx0sMCwzFEEdceFFLBeKACB684l 3b1/G9g0ppfAqecKppq0Wu2dkfA9VWxku7RhWQNtz8lSD4A+0Av1Fl0q38O2U+xeRpIt umMqSLDRnS9SeNgTEtfXX5wNC04S0mCy6JcOoustXSKmSmf796sBAdxsykupdoIvvqEF zGz36WMvfclUmwzkV70XqAoI+FpkTJi8uJmAimrBnBq6bnZ7jx13PS5u9TyyNaL97kQ+ 2LGsao9zf511EqsJBz624I2KKA1BNQUD+joTg02vh9okhFnAq0RmrS4HspVUq7QR1UkH Uwqw== MIME-Version: 1.0 X-Received: by 10.107.138.26 with SMTP id m26mr4947297iod.64.1415056495669; Mon, 03 Nov 2014 15:14:55 -0800 (PST) Received: by 10.50.98.68 with HTTP; Mon, 3 Nov 2014 15:14:55 -0800 (PST) In-Reply-To: References: <5457AF2F.90808@php.net> <5457BDB7.8070701@garfieldtech.com> Date: Tue, 4 Nov 2014 01:14:55 +0200 Message-ID: To: Levi Morrison Cc: Larry Garfield , internals Content-Type: multipart/alternative; boundary=001a113ff6aac2f7550506fc83dc Subject: Re: [PHP-DEV] Annotation PHP 7 From: ua.san.alex@gmail.com ("S.A.N") --001a113ff6aac2f7550506fc83dc Content-Type: text/plain; charset=UTF-8 Nothing magical in the annotations no, they very obvious. It gives you the to declare logic and meta data. I do not like annotated in comments, I like the implementation of annotation in C# 2014-11-04 0:49 GMT+02:00 Levi Morrison : > On Mon, Nov 3, 2014 at 10:39 AM, Larry Garfield > wrote: > > On 11/3/14, 10:37 AM, Stefan Neufeind wrote: > >> > >> On 11/03/2014 05:26 PM, Pierre Joye wrote: > >>> > >>> On Nov 4, 2014 1:24 AM, "Jonah H. Harris" > wrote: > >>>> > >>>> > >>>> On Mon, Nov 3, 2014 at 9:11 AM, Chris Wright > wrote: > >>>> > >>>>> There are no current concrete plans and currently nothing being > >>> > >>> seriously > >>>>> > >>>>> discussed (at least, not publicly; I don't know if anyone has > anything > >>> > >>> in > >>>>> > >>>>> pipeline that they haven't announced yet). The three RFCs you linked > >>> > >>> above > >>>>> > >>>>> are all basically dead. > >>>>> > >>>>> You are of course welcome to put together a proposal and/or start up > a > >>>>> discussion on the subject if it is something you would be prepared to > >>> > >>> put > >>>>> > >>>>> work into. > >>>>> > >>>> > >>>> I, for one, severely dislike annotations. But, that's why there's an > RFC > >>>> process :) > >>> > >>> > >>> I tend to think it is not a taste matter anymore. Symfony ecosystem > >>> (components, doctrine and co), Zend framework, etc use them. We see > >>> requests to work around user land implementation but we keep us away to > >>> get > >>> native support. Maybe it is time to the jump and get rid of our tastes, > >>> like years ago when we discussed which kind of OO we wanted in php. At > >>> the > >>> end of the day we do what we did not want back then. > >> > >> > >> The TYPO3-family (TYPO3 CMS, Flow, Neos) also use annotations. > >> So, yes it is used "in the wild" already and is there to stay. We can > >> imho just make it a bit easier to work with (maybe also performance-wise > >> in some cases) etc. > >> > >> > >> Kind regards, > >> Stefan > > > > > > > > Drupal is now using annotations as well; not for the Symfony code we've > > inherited, actually, but for some home-grown systems for which we're > using > > Doctrine's annotation library. > > > > Having first-class language support for metadata on definitions would be > > quite helpful, if for no other reason than native syntax checking and > code > > assistance. (And to help people get over the "it's code in comments!!!" > > problem, which is entirely because we have to put annotations in comments > > now as a hack due to the lack of native support.) > > Whether the annotation is in a comment or not, the idea of changing > behavior at runtime based on the annotation is pretty magical. I > highly discourage using this type of feature whether it's in a comment > or not. > > I will certainly vote no on any RFC on this subject, as I see it as > being significantly more harmful than helpful. > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > > --001a113ff6aac2f7550506fc83dc--