Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:110359 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 56012 invoked from network); 4 Jun 2020 09:48:45 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 4 Jun 2020 09:48:45 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 8DF391804E4 for ; Thu, 4 Jun 2020 01:31:08 -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-f48.google.com (mail-lf1-f48.google.com [209.85.167.48]) (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 ; Thu, 4 Jun 2020 01:31:08 -0700 (PDT) Received: by mail-lf1-f48.google.com with SMTP id c12so3039796lfc.10 for ; Thu, 04 Jun 2020 01:31:08 -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=DFIV3Jz4NrhgC/ymfOA66+DI+EtDM1uApE8yYwFtKWQ=; b=r5idbyPpbgHF/G/4XcBHCcRUZ46bEZD98tsAtMOxrZqL/hEKkwCX2jlGA9pf/bOxgx KXFChuobz+mFm+kJWuBPBCCOR6jOcFVryCpaunzjj6x6K38E20XfEn1UPOD2dXsJbh9e RF5ynOsLGbXHt7c+xSFGb+/J+TxMgVdd1ovNBDBDaQjiwhqNGOKTXbH/Fm+f7ca09SZN jKLgxPjOJbQPHjzY6B/Vxa3rEwYjFzwq14Msa4wjRwgVw+eCoOVlCZOOSuNPEGIEc+aR vjLXRegEU4mId+HHUcM6nGhu7D/fdbDn+YP21mHCiEM5da7aIA1D/LdD7wIE/Oon03bp C9iQ== 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=DFIV3Jz4NrhgC/ymfOA66+DI+EtDM1uApE8yYwFtKWQ=; b=ibcIIIoIbxkg4+WH0aV4g9Mdsk4Xapy7lGD8o6pPl9RD5ppIKIJkooT5Unrr6+iY+6 O+bq5eHgLklo455QkVqfvH9Wxc2sosA4gNLIwiMhHrXTcrphiqtu/zyKKCj+liNRuXnT TPNa0ECGLm2uQjNf0k6gW7l8wEEWsZbOGYGJRHF62T1uKJHF5pKZa6dTI6EWS+2U2OiT ZoZZr5boY/4VxhsS943vnE/eBf8ZnHc5JwqgP1E7nJm3XHf9SpspY1ZNBRpZTeBIFi5V DbqXfG2/quzIr6Yq/cd7COeVCiKpyQdR7c2Bf1wKF2XdmOGg5lAmeAiOPgNBh3fuCbxL UEcg== X-Gm-Message-State: AOAM532H0ApXvK64UsLf5corX2LCQRwTkmQH9ZCjZM8tawyhi7kMeagW boS7xvTwBlYf2/rQ2mTOoPCLMGyJkufbhRBWoKA= X-Google-Smtp-Source: ABdhPJxXQwuqFp8+u8Hj+6TnJU9SqEUubu0P7llUPt1zkj0YskOatJSOJKDFHm6xKmbUqO4HwTtzhUxN4t+Y9Zrhzk4= X-Received: by 2002:a19:4b89:: with SMTP id y131mr1875418lfa.16.1591259465878; Thu, 04 Jun 2020 01:31:05 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: Date: Thu, 4 Jun 2020 11:30:53 +0300 Message-ID: To: Peter Bowyer Cc: Theodore Brown , internals Content-Type: multipart/alternative; boundary="0000000000003593bd05a73df719" Subject: Re: [PHP-DEV] [RFC] Shorter attribute syntax From: benas.molis.iml@gmail.com (Benas IML) --0000000000003593bd05a73df719 Content-Type: text/plain; charset="UTF-8" Hello, yes, that would create ambiguity in the parser since `#` (just like `//`) is for comments. Best regards, Benas On Thu, Jun 4, 2020, 11:03 AM Peter Bowyer wrote: > Hi Theodore, > > On Thu, 4 Jun 2020 at 00:55, Theodore Brown > wrote: > > > https://wiki.php.net/rfc/shorter_attribute_syntax > > > Thanks for creating this RFC and for including "Comparison to other > languages" in it. A provisional +1 from me. > > Does the PHP parser prevent us from adopting #[attr]? I presume C#'s [attr] > syntax and C++'s [[attr]] are impossible due to PHP's short array syntax. > > Peter > --0000000000003593bd05a73df719--