Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:110357 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 23547 invoked from network); 4 Jun 2020 06:42:29 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 4 Jun 2020 06:42:29 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 190D01804F4 for ; Wed, 3 Jun 2020 22:24:50 -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-lj1-f173.google.com (mail-lj1-f173.google.com [209.85.208.173]) (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 ; Wed, 3 Jun 2020 22:24:49 -0700 (PDT) Received: by mail-lj1-f173.google.com with SMTP id s1so5681079ljo.0 for ; Wed, 03 Jun 2020 22:24:49 -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=UwEoGJyRrg9EelhCKF14H0AXvnEY7lCtbszvWliVnok=; b=UhVeOD1iSqBvdZQj2CyC91lXkDWWok2FC1ym0XE3pkvHgY0O5j2Cf99vr+FPYxLF/O npNFM7o+6xlQAikuX0KHb95ClSnJC0lz0FKHJEoiCY0xcr2ioxgUYsDSme7EOj1VPMbv 7u4c3j/9iXuITC/U/71op9YwoIwrKJ0eilUqyP+5xcUkPrmnkujjceAzhMboFVQPhFbC I+RIZUVlCoGLan/zLPZk12GvAdpiKtLJa6bqDXMvPj2DNjRkqqc80lPD69+MeTk9iuFq SbB5nL5laPqFwpPcBkTKRt1CvpiJIUc5LGVoRFaRLz+NgTYDXSmMy4P/r+V+rxMfyYiz b59w== 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=UwEoGJyRrg9EelhCKF14H0AXvnEY7lCtbszvWliVnok=; b=fCl+gXeKAFIGjGIbKZKrxWFC9S1HyY+oTV1lB3nE52gRN7im4ZncpI5UnQe6S02Hcl mTysu84fR8JNQqVam3n/rKgcld+SA9PG5BYl82g18hzFLOk+EKq8Mu0mv3YXaA2iJIHo 0QeDtyyca7op3unbrRCDhiFfoXkQW1qaHLNTbBBTDsRTOJwc522TrEx0LDheNvr/EXFd X+A4UKnmW48V/yOqlQZFm+gjZ21OcYiZjqzODUuHyKfP0MAUAXt6WC2b1Td36aIkPNNh Xk1h087VYTPPVkfj+fbGW9Ub3py7WJFBhHZI05sOVWezCP9mw/IwEZAQkHgBAKg5Boqr Ggaw== X-Gm-Message-State: AOAM530lYUtcGkoUNzq+AmTve3FpGd8jlx58eqYpFtfT8iF2r00DxVbE Hjn3ecOTcA/gi9P+jasL55fNqcsh7xcWsC1Sfb8= X-Google-Smtp-Source: ABdhPJz2Nkm7Tt1tOmJwYv3mJ4yyJ35YphRjyjj4KPwJLWJyz9vFBivJbSfDxRVKkOySVc/PSwksDvXPOBKt58djq0c= X-Received: by 2002:a2e:b6cc:: with SMTP id m12mr1264802ljo.96.1591248288022; Wed, 03 Jun 2020 22:24:48 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: Date: Thu, 4 Jun 2020 08:24:35 +0300 Message-ID: To: Theodore Brown Cc: internals Content-Type: multipart/alternative; boundary="000000000000f5082d05a73b5cc6" Subject: Re: [PHP-DEV] [RFC] Shorter attribute syntax From: benas.molis.iml@gmail.com (Benas IML) --000000000000f5082d05a73b5cc6 Content-Type: text/plain; charset="UTF-8" Hello, thank you for the RFC but I hope it doesn't pass. Here's my constructive feedback as to why. Verbosity? Are we really debating whether adding 2 extra characters is more "verbose"? Well, with 3 or more grouped attributes, we are less verbose by 1 character. I don't find "verbosity" to be an argument as to why we should use the `@@` syntax. Moreover, we become inconsistent with basically every other programming language. Even `<<...>>` syntax is more consistent since our sister language Hack has it. I don't think it's a good idea to reinvent the wheel. And well, a BC break, even as small as it, is a BC break. Best regards, Benas On Thu, Jun 4, 2020, 2:55 AM Theodore Brown wrote: > Hi internals, > > I discussed the syntax for attributes further with Benjamin, Martin, > and several other internals developers off-list, and with their > feedback completed an RFC proposing to use the shorter `@@` syntax > instead of `<<>>` for attributes in PHP 8. > > https://wiki.php.net/rfc/shorter_attribute_syntax > > The goal is not to bikeshed over subjective syntax preferences, > but to address several concrete shortcomings related to verbosity, > nested attributes, confusion with generics and other tokens, and > dissimilarity to other common languages. > > Best regards, > Theodore > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > > --000000000000f5082d05a73b5cc6--