Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:108922 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 61639 invoked from network); 9 Mar 2020 21:34:08 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 9 Mar 2020 21:34:08 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 459931801FD for ; Mon, 9 Mar 2020 12:54:49 -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=0.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,HTML_MESSAGE, MALFORMED_FREEMAIL,MISSING_HEADERS,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-oi1-f182.google.com (mail-oi1-f182.google.com [209.85.167.182]) (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, 9 Mar 2020 12:54:48 -0700 (PDT) Received: by mail-oi1-f182.google.com with SMTP id g6so11472248oiy.1 for ; Mon, 09 Mar 2020 12:54:48 -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:cc; bh=mSfcEm4JZPpNEFI6dDIRc3uAPIxMRBv4sa4kTIhnkxU=; b=imM5nMJRvqrpKQNl/2Cp/ZOozXZpstRXycbumkby/xDAkr8tsoPtl+y8AtBFzsNu14 EpFxQyQqXL729xlt6FvEHWk2+LqqE/6LLs6lhJ+jLXYcuOzWUFhJ6yZw8FAbjK99yGut LG2cqqRYEIbP8xZqlu1fDXyoYGcsYUgSnuMtv7YU+f41UTAhbyoBD4yMnQTZnUdSTtfZ /DQrsKrtEOHqYPStdvE8k+NpWyS72bb6GsJ65eqXSwhvpsFctsstzLyf3Xp+SmYd4RG/ kWYcPR4I/5ups8qzMRdKUQNW9tBDnv0+ylvOfshs/8a/52Yg5UHGCkexzkgYydk490MV LSSA== 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:cc; bh=mSfcEm4JZPpNEFI6dDIRc3uAPIxMRBv4sa4kTIhnkxU=; b=WmD767Qf2XXWceiO9/Qllv2OHMTKv/fwpoGcZp0hZBNWAMHHmCL77cVxDFp02eZsJo BJBX9DRdGgh/UaT1jJQdug7tMp6kPQjYuUvZbS9neL3h22ew7KKH3kGDG6iJZ9uWkRJQ 1UZsVtBSRCD41s6ra4v840wY5/znCoglRJBUbjAiBVB7aWmodzgDiVYYkcjqE87EVGtO ho5x1EHywsWTm+kaAKWhQ/x802WCknu8Hjmf+d724wIJYHeKa4pqdsZN0n+XlXFM4LH/ 5X4HCWLYOeWIu+nka7gqSKcXsZadFmRiJbNuHq4/Zjpq9EKWcEecfI2P+YTK05tSaHDA c1Dg== X-Gm-Message-State: ANhLgQ0tW6xaMxBgT9oS3g3ow8DEqekXIG147GmYuaog58B3A3eSpguQ kYfvr9CdhTz8wYAwPRO9IfzwJK0XreNwBh5fT+Wng61u8xY= X-Google-Smtp-Source: ADFU+vtd56oPX5LFq6t/RFpYBAleBe8yD5QM15pFgGlYiLrbDPGRnTMLg6FV61Cc6FtIVUPo26pBftrPSNEICA+PGZE= X-Received: by 2002:a54:4085:: with SMTP id i5mr651904oii.17.1583783685606; Mon, 09 Mar 2020 12:54:45 -0700 (PDT) MIME-Version: 1.0 References: <86a6c63d-90d9-2baa-a4a2-cfccdc4673ff@alec.pl> In-Reply-To: <86a6c63d-90d9-2baa-a4a2-cfccdc4673ff@alec.pl> Date: Mon, 9 Mar 2020 16:54:34 -0300 Message-ID: Cc: PHP Internals Content-Type: multipart/alternative; boundary="000000000000fb532b05a0715fa2" Subject: Re: [PHP-DEV] [RFC] Attributes v2 From: david.proweb@gmail.com (David Rodrigues) --000000000000fb532b05a0715fa2 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Another doubt: in relation to the PR ( https://github.com/beberlei/php-src/pull/2) it is called as "attributes", but seems better keep as "annotations". The Doctrine annotations is based in PHPDoc, are not? And it is basically the same thing, and annotations term is used in other languages. And too, could annotators have some additional features like Typescript decorators? Atenciosamente, David Rodrigues Em seg., 9 de mar. de 2020 =C3=A0s 16:35, Aleksander Machniak escreveu: > On 09.03.2020 15:42, Benjamin Eberlei wrote: > > The RFC is at https://wiki.php.net/rfc/attributes_v2 > > Would it make sense to support this: > > <> > <> > <> > function foo() {} > > in this form: > > << > WithoutArgument; // comments allowed here > SingleArgument(0); > FewArguments('Hello', 'World'); > >> > function foo() {} > > or if there's not many attributes, in the same line: > > <> > > It may look better for the short version, but I'm not so sure about the > long version. > > -- > Aleksander Machniak > Kolab Groupware Developer [https://kolab.org] > Roundcube Webmail Developer [https://roundcube.net] > ---------------------------------------------------- > PGP: 19359DC1 # Blog: https://kolabian.wordpress.com > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > > --000000000000fb532b05a0715fa2--