Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:110434 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 9137 invoked from network); 8 Jun 2020 19:58:07 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 8 Jun 2020 19:58:07 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 95969180506 for ; Mon, 8 Jun 2020 11:41:34 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,HTML_MESSAGE, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.2 X-Spam-ASN: AS15169 209.85.128.0/17 X-Spam-Virus: No X-Envelope-From: Received: from mail-lf1-f53.google.com (mail-lf1-f53.google.com [209.85.167.53]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Mon, 8 Jun 2020 11:41:34 -0700 (PDT) Received: by mail-lf1-f53.google.com with SMTP id d7so10864532lfi.12 for ; Mon, 08 Jun 2020 11:41:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=pNdGAzHwJyMJaRNtm3X5Xyp6lV/VG3PoLDzsnyAg/FY=; b=sLQbnCMCzCjd6LZTOvsnGgevijRZmePgtJREj31XQsisQko4J2RAjoV7B0gsSK+5ja MCNIjLIrnNKqdbW9duvg/b7AEU5qH4EMmrEYMe60Rh+86yi0748p2omdpQ/dVwuDDcmd RF3z1kG5s+Koh6b1bn+f2q7ZBrODOLC5jcpHmxTVOfDY7hB6Rdm9q4tI7hE6VgLdW+DT 9WDSbDQz5hv1YtbeUn7BdEIjwexFSJR9m0GzUCV21HG0uxqZO69ZCLKaGXUZsYF9JTDR gzYCae+3Y7LnbGGBeawwcdXQ0vYvdydN1lKknUVaHibSbzu4mDH6vARBm6lE/slwyC9G 3AlA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=pNdGAzHwJyMJaRNtm3X5Xyp6lV/VG3PoLDzsnyAg/FY=; b=lQZILDF5oloG6xbt1ZobWdbhyO/ORPS9IEBI5lglxR7Rw89N8k2MMfGFPmGLOWHnob tOK6vzdNIUrtErhTlp2UloTELHtJWhCm53fzj28I4ytIqMnbStOtRDq0GCw9NAEzgbfW XPexP30/E3Fvjr5LKpJjeJM/9z/8nqwfxow+y69Krb6s+9k2ArA4GphdTzDTCtAoIAeu 7j85WTtAQqtvdHLcI8frXdUDwypCiSEI2W3x6Zw2nH89CTlZ2pc01jBL4kDHQXluYEQc h4Pm2RbFEz4poAlF2Pu+w8z2Zi2y59gTxncf+GWIlYDgwdoRXrxhyemQ7vIXuQp4U6x6 JcvQ== X-Gm-Message-State: AOAM531cV9Oq5aLsbDT/R3we9gPlSC5saTZMDfFVqkQWkCtA/9G8vz+0 1fZfQ+tCK0LVOb08GXqInMxKfBDSWMaVaTrAR7g= X-Google-Smtp-Source: ABdhPJxCc8F9wtDB2eph5klNviTgmCAoiGkiJfUVUhC8rMfnhiPB3+9qrNR8aDM8jcuivU+FuJmBER5DvG3ld7VG/f8= X-Received: by 2002:a05:6512:203:: with SMTP id a3mr13259583lfo.28.1591641689981; Mon, 08 Jun 2020 11:41:29 -0700 (PDT) MIME-Version: 1.0 References: <732f2e74-ff08-5353-7fb4-c9ab7e33b7f5@lsces.uk> In-Reply-To: <732f2e74-ff08-5353-7fb4-c9ab7e33b7f5@lsces.uk> Date: Mon, 8 Jun 2020 21:41:16 +0300 Message-ID: To: Lester Caine Cc: PHP Internals Content-Type: multipart/alternative; boundary="0000000000008a946205a796f5ae" Subject: Re: [PHP-DEV] [VOTE] Attribute Amendments From: benas.molis.iml@gmail.com (Benas IML) --0000000000008a946205a796f5ae Content-Type: text/plain; charset="UTF-8" Hey, I'm not sure what you're referring to as "generic variable system" but given that you mentioned "type", I assume you mean typed variables? If so, PHP is never going to have typed variables due to performance implications. As for the `/**` and `*/`, I believe Marco was talking about Doctrine Annotations. For example, instead of writing this: ``` /** * @Route("/users", methods={"GET"}) * @OtherAnnotation */ ``` ...we would write: ``` << Route("/users", ["GET"]), OtherAnnotation >> ``` Best regards, Benas On Mon, Jun 8, 2020, 7:47 PM Lester Caine wrote: > On 08/06/2020 16:30, Benjamin Eberlei wrote: > > > > > > On Mon, Jun 8, 2020 at 11:11 AM Lester Caine > > wrote: > > > > On 08/06/2020 09:44, Marco Pivetta wrote: > > > I was mostly conflicted around the "allow grouped attributes" > > bit, but > > > James Titcumb (who currently cannot write to this list due to > bounced > > > emails) convinced me that it is a good replacement for `/**` and > > `*/`: > > > > If twenty years of documentation provided by docblocks is to be > > replaced > > there has to be a compelling reason to do so and while this latest > > drive > > for yet another documentation method seems to be now a fate acompli > > there WAS no reason to replace that perfectly acceptable > documentation! > > > > > > Attributes are not documentation (they could theoretically be used for > > it, but its not the intented use-case). > > > > Attributes are supposed to be used with Runtime Reflection to have an > > effect on the program. > > > > Their existence does not supersede docblocks, only the use of docblocks > > for meta-programming (essentially doing what Attributes allows with > > docblocks). > > So the statement that "it is a good replacement for `/**` and `*/`" is > not correct ... it may be that others do not understand the difference? > Personally none of this is addressing the fundamental problem of > providing a generic variable system that can manage range as well as > 'type' ... something the docblock have been providing for a long time > and moving part of that to some new element is only making things worse :( > > -- > Lester Caine - G8HFL > ----------------------------- > Contact - https://lsces.uk/wiki/Contact > L.S.Caine Electronic Services - https://lsces.uk > Model Engineers Digital Workshop - https://medw.uk > Rainbow Digital Media - https://rainbowdigitalmedia.uk > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > > --0000000000008a946205a796f5ae--