Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:108925 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 74158 invoked from network); 9 Mar 2020 22:14:01 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 9 Mar 2020 22:14:01 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 852A91804D3 for ; Mon, 9 Mar 2020 13:34:46 -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=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2, SPF_HELO_NONE,SPF_NONE 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-wm1-f53.google.com (mail-wm1-f53.google.com [209.85.128.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, 9 Mar 2020 13:34:46 -0700 (PDT) Received: by mail-wm1-f53.google.com with SMTP id n8so971732wmc.4 for ; Mon, 09 Mar 2020 13:34:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=beberlei-de.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=Fi2waWJc/wT7MZBVqx4BXJSzu19M3EV2UC70GWmUYCk=; b=gNAv/NQS9hUbydaj9nmzboMT6+o6BdWvX9XPBjZSIleUu9QCi9F1N7doRJEc7YFHZ8 qM6g693kcwCSmA3EyDZpGCWJ6ltVluW+Ul54byomKBTpDT2iK1S0f0Ev7kPGPMJA142V 3m2bwrUTVTlVNhmNug765TDqx4odcI+GG6pzswuoba6S6gPik0Whf5a+2FZauQRHqzsj 3SkhX5eSFEcuvLudddxUMqefzYuICiQ9nlYa0RQ//MQk5UKnWXApZ+FcqCsBvHxs4Iuo knGVJFnxdnUP9ABKxJyfuM66/jNO+iP5qoX4GrubBUdbPwF4yDaSjdwq+SMxQGWiVE7O ksdQ== 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=Fi2waWJc/wT7MZBVqx4BXJSzu19M3EV2UC70GWmUYCk=; b=ZbbtVqMTCehFjB1BDhaLoCvgPjN5ez6yqYtPvQoCwnaMbjv05aAe8Mc6lit6SykFao BeD5Aci4/972IVlZnFlUqzBpt3yPj9C7dbpIICKFeDEiLoma4skhsqEaLKpNrIh8oCe1 JZpjZ8WLQanwvfa/6w8Q6oI8z+E52R9s1l/wl3R5C+yOUox4qodGInewM/gq6f44AsT8 zJdf2IUl/IgdTQGV30B+wqyUJUuM8PNwyqT+lntw5PoFG+cydlQU0xESA1VdX4Aq1pYw 1nJSXaTTcvB2WYvWWvT9+85jqUkKG9YsYfabk7nVd2RIlZwpmKNnjXxVjstW3X8mj3yr QZsw== X-Gm-Message-State: ANhLgQ1vB4VTpiqFjKOyHDQsAgtFq5JzX7ICIJoN7B6KFNObNbRC6RaU PlImRecU6JDr8vwvFk7Yvp3IJCRBzo9xtoSG4nJ4slnP X-Google-Smtp-Source: ADFU+vvlnA0ESKR6UoiaMWMkPWS9nA14/GShvr3AIlQ307p471gUrurjr9N3ZxQlJndAXsY2U0zbeS5IbC+x+c52UkU= X-Received: by 2002:a7b:c0d7:: with SMTP id s23mr1046282wmh.168.1583786083388; Mon, 09 Mar 2020 13:34:43 -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 21:34:32 +0100 Message-ID: To: Aleksander Machniak Cc: PHP Internals Content-Type: multipart/alternative; boundary="000000000000e6a2a505a071ee49" Subject: Re: [PHP-DEV] [RFC] Attributes v2 From: kontakt@beberlei.de (Benjamin Eberlei) --000000000000e6a2a505a071ee49 Content-Type: text/plain; charset="UTF-8" On Mon, Mar 9, 2020 at 8:35 PM Aleksander Machniak wrote: > 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. > Its certainly possible, the original Attributes v1 RFC supported both syntaxes. I wanted to simplify it and opted for each attribute to have its own <<>> enclosing. I have added it to the list of open issues to determine what approach to take. > > -- > 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 > > --000000000000e6a2a505a071ee49--