Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:111351 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 72361 invoked from network); 6 Aug 2020 08:44:47 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 6 Aug 2020 08:44:47 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 17CA41804AA for ; Thu, 6 Aug 2020 00:42:55 -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-Virus: No X-Envelope-From: Received: from mail-io1-f47.google.com (mail-io1-f47.google.com [209.85.166.47]) (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, 6 Aug 2020 00:42:54 -0700 (PDT) Received: by mail-io1-f47.google.com with SMTP id a5so33384058ioa.13 for ; Thu, 06 Aug 2020 00:42:54 -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=bEyd1r517/BhbDKyWHC0lmhjrmwUmt3/ySg4NppheDc=; b=qiHSLP2VQof31J2TtAMC6UkVsoyx36Nc0dnInbO1XQsG4b2hmyKxN74kbX4ZPX7KC7 5sW17AVkKB5tskDPuFaseBTOFcEZy3Bp6M7kclYqrvHGZGUeWcCwQ+5jDvn8A7vSissf 0S0lK2KMerA9WWqxGR2H0UievRTmXxlnfuiIgxDYEcI++kJf8nGI9RihV3Yvr0KtQwUl BhwW7eJ/knCsLuKorM9JJaVgCDFX6YJDGjrHtPJgWoqzGeOjxu2nRgHTYzjXnEX4YEsy nqijDYcs1pLUEArLlQ/U4P7GdpSAecSak/si3HhSQVuOQi7aVrSgarKNgjd8wYuJpQZE zBWA== 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=bEyd1r517/BhbDKyWHC0lmhjrmwUmt3/ySg4NppheDc=; b=jXAZ0m1fNjScR2X6xf7zl4pRs6YOz6DA/rNFtXRwwdwrP/ff/OZjiOX75Nkrn2sN4S zGMHf8NS5yRca0nIsSCfuVbynJ3gxsW1O4tP+FqTbXxjNuDdP4VGpxkI7JbNjxs8pIIv QKI1wG05nsITo9UDgwSq0V5pHLEcDcfo6CwObrlZ8y09xS0NJloAnEgYhyl10x7vrN7u BcXAxsBePBGCWSoOYBey+LeKbMuDXQPYAhHFLdzvyvEfJ2p3IYPIwhAdZeg0SzHqJQry YR7CPTq+0NFNDqaee2MWd7ZRAtak3hIHNTxa1/I0tf5WfbMRZzn33yjGNFfNY+iAKQYo wyVA== X-Gm-Message-State: AOAM533f8keT4Fgl47JctWoOkTYAx+YMLt0gmTLVXTKZ8kbO9Ve/piIM qw2KW4lJj6fEit9Fh95ZVUvxLYm2 X-Google-Smtp-Source: ABdhPJzMkLXSsS0flqkuf3XRJpxbTTJXnSSl4nUuQtd/A2URH71Y4D3J3JY16CgLAValOrpUzfiuiw== X-Received: by 2002:a05:6638:24cf:: with SMTP id y15mr9928875jat.137.1596699772909; Thu, 06 Aug 2020 00:42:52 -0700 (PDT) Received: from mail-io1-f44.google.com (mail-io1-f44.google.com. [209.85.166.44]) by smtp.gmail.com with ESMTPSA id s85sm3179787ilk.77.2020.08.06.00.42.51 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 06 Aug 2020 00:42:52 -0700 (PDT) Received: by mail-io1-f44.google.com with SMTP id g19so36581686ioh.8 for ; Thu, 06 Aug 2020 00:42:51 -0700 (PDT) X-Received: by 2002:a02:8384:: with SMTP id z4mr9713917jag.121.1596699771772; Thu, 06 Aug 2020 00:42:51 -0700 (PDT) MIME-Version: 1.0 References: <20200806091749.64675445@mcmic-probook.opensides.be> In-Reply-To: <20200806091749.64675445@mcmic-probook.opensides.be> Date: Thu, 6 Aug 2020 08:42:15 +0100 X-Gmail-Original-Message-ID: Message-ID: To: =?UTF-8?Q?C=C3=B4me_Chilliet?= Cc: PHP internals Content-Type: multipart/alternative; boundary="000000000000b5bad605ac30a24c" Subject: Re: [PHP-DEV] [RFC] Shorter Attribute Syntax Change RFC 0.2 From: phpmailinglists@gmail.com (Peter Bowyer) --000000000000b5bad605ac30a24c Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Thu, 6 Aug 2020 at 08:18, C=C3=B4me Chilliet < come.chilliet@fusiondirectory.org> wrote: > As said before, it does have an ending delimiter when they are arguments > since > there is the parenthesis around them. When there are no arguments I don= =E2=80=99t > see > the benefit of an ending delimiter, it=E2=80=99s easy to spot the end of= the word. > And if needed, make the parenthesis required. So @@Foo is illegal, but @@Foo() is allowed. Required parenthesis is familiar to most PHP programmers (functions, classes following common coding conventions) - what's not to like? Using "^" in the code demonstrations below as no one has proposed it and my point isn't about #, << or @@ we get: ^Foo( ^Bar(43, "raa") ) vs ^[Foo( ^[Bar(43, "raa")] )] To me the former is significantly more pleasant to read. Is it difficult to parse? Peter --000000000000b5bad605ac30a24c--