Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:111355 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 92872 invoked from network); 6 Aug 2020 09:33:55 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 6 Aug 2020 09:33:55 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id C81411804DB for ; Thu, 6 Aug 2020 01:31:59 -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.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,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-Virus: No X-Envelope-From: Received: from mail-wr1-f52.google.com (mail-wr1-f52.google.com [209.85.221.52]) (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 01:31:58 -0700 (PDT) Received: by mail-wr1-f52.google.com with SMTP id p20so8240116wrf.0 for ; Thu, 06 Aug 2020 01:31:58 -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=k7UqizbCXo2p8knQKDebqAgINL5Hp9QqKvnQB7kHrAI=; b=GXE/NeDkU8Ya9NI/WVoFplx2KxpvkfN79aaOEekbByLTrB0IrFOyrOmBTk9oA8M1OR YgELdN2ZnPdAT23rRIuDS9gvMP6aq/GNExFgGjdT/KFqd8TiKNqcYV/KTiVuVJv3bFQW 5P4cWu2q6U9bcZlEsuJJHdIsIE+8J3p+97Tj9L5TI7SM072UevmmulTKJQaBetDfycvi KiC1P5Kl1wr8/ZhyPHhugG0nZCF58gygZAF1L6r19RV6oUjJLr+ErmOMnZ4F/r1Vbp2D ODr3FA3dY9NHvsJVln/jAgYi4ekAyr9YmddyDAgZuhIkplu76nCMxMLTBELHdCjZlm70 +5Bg== 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=k7UqizbCXo2p8knQKDebqAgINL5Hp9QqKvnQB7kHrAI=; b=VkOSI78KmYMsWyXo0Ln7kNfQbRK3sQlEuGadKp1BD3jjSahnTH5aiZ/PgiZ8YexoLn Pw0B+/9YdpU50ygmq9EX1Wubsd4WopMdtFlMjaYCe5CseffW5y/73Z0dZSnDQV0HL3L+ 8djcfm3fmdfGj7JxgY/MWrwBZKtado46PF6h9p8bhWKYSv2GHjOjvd7LjmM6yK+4Bh/+ 4OnEIZukrm5aohKrj1wBb2hifXwJ2jC1rktVCnXftbt9BM6h2UayPW1dSFa82MIYgCJI MVy/47LC+AmcT3rTQZVD3wp/GLQHZOC1bzVnYE/VRfi/6BZmAxNbUM6P/BpesFjZ34Z3 tHPg== X-Gm-Message-State: AOAM533OeUdEQkk7WQ9Lv5sQVBOr5hd9eLkGSbeICt6Jiei/wYO1LqId DjSA7KadxeXfaoZuBVX+5VIwF3NSMj9Y35tIAL6Oh0TChLw= X-Google-Smtp-Source: ABdhPJwyyLj8u9cryOzIVUE7Ip8XmG9oD97Ymgpu8EuhkYghq2hdKSwgrjwmnPE5KJ7VPO/dL1m75A4u4eQblu7q8xQ= X-Received: by 2002:adf:ce89:: with SMTP id r9mr6784995wrn.116.1596702717698; Thu, 06 Aug 2020 01:31:57 -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 10:31:45 +0200 Message-ID: To: =?UTF-8?Q?C=C3=B4me_Chilliet?= Cc: PHP Internals Content-Type: multipart/alternative; boundary="0000000000004cfb6d05ac31529d" Subject: Re: [PHP-DEV] [RFC] Shorter Attribute Syntax Change RFC 0.2 From: kontakt@beberlei.de (Benjamin Eberlei) --0000000000004cfb6d05ac31529d Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Thu, Aug 6, 2020 at 9:18 AM C=C3=B4me Chilliet < come.chilliet@fusiondirectory.org> wrote: > Le Thu, 6 Aug 2020 07:48:05 +0100 (BST), > Derick Rethans a =C3=A9crit : > > From the RFC: > > - No ending delimiter > > 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. > > > - Doesn't allow grouping > > I do not understand this argument, what is the point of grouping for @@? > Does grouping mean anything special for other syntaxes, or is it just to > save > keystrokes? If it is just to get a more concise syntax when there are > several > attributes, the fact that @@ do not need grouping is a pro, not a con. > > > - No forwards compat with PHP 7 > > But no BC break either, while #[] introduces BC break. > This is **not** true. Both @@ and #[ will break existing PHP 7 code! The question is how likely each of them is. #[ will be slightly higher than @@ - but both will still be in the 0,000001% range of occurrences. and for *both* the same Fix is a project wide sed that replaces @@ with @@ and #[ with #[ respectively. > > - Not used ny another language > > @ is used by a lot of other languages, and @@ is the closest we can get i= n > PHP. > > C=C3=B4me > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: https://www.php.net/unsub.php > > --0000000000004cfb6d05ac31529d--