Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:111617 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 1162 invoked from network); 18 Aug 2020 22:15:58 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 18 Aug 2020 22:15:58 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 46BAF18053B for ; Tue, 18 Aug 2020 14:17:13 -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=-0.7 required=5.0 tests=BAYES_05,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-lj1-f194.google.com (mail-lj1-f194.google.com [209.85.208.194]) (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 ; Tue, 18 Aug 2020 14:17:12 -0700 (PDT) Received: by mail-lj1-f194.google.com with SMTP id w25so22998078ljo.12 for ; Tue, 18 Aug 2020 14:17:12 -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=GDCCfBKy7R0v6sZX6ez21Mml/9C+/tGsbnm2iDYmNI0=; b=vWbO25adHzoZYily+v4DkTiUrcT1I1BGcfb0KCSMTs0T0YzquJ+9+WB/qyb5WQNy1p 6SPKtnVQAZbFHnzcZrh9yCCTSft7FP1tBaKDYWKufuecO+4BuHCXXA8mrstTsOpKKSfL X/2OJd4ZMkHMJ6yM+pApmxkzLyQGFNBolXY93+PqIeBz0ERnHiwbrgcu9LQDK1GgtxsT qBG+MhZGfzyca3bwY304dopXEqLx8gnhwU21QpNaIKhY40sPTX2wo4rkGhGwbDafrzZo qC8xmeBHM9Qe5HDbD0Ale/T8z7//Ipkp3AWbpLtyfas2ndAqtuunqGAZm6ma3JunI2Q+ smeQ== 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=GDCCfBKy7R0v6sZX6ez21Mml/9C+/tGsbnm2iDYmNI0=; b=J0b4rJlNmbnIlvBNAJG3KSbX6btfRmycwUeHh/NMi5ho9HbT0+dT+W3/qWopeBpxgb y1eoRmd8+tu3888N0WDU/j3bN8W6/ZqFm5IiN5llmnoNAQizEjrZ4GTRLrsbApgGOPY2 b50fGr3MVvvxROI7y/QCrRXPYWjxe0Gd5yav9udtHETDAIQa0VU0apYPVgvhOmNDx7dd iHaXrX0x2QU3MwTsaPjTP+3pZQdwC4jkTLln0FNaQ1IhOGcBOmYz/0YRFrTguMKksCEK 9XI3Ar11e362jB3Lka4P/5Lg4fixPfBz8VU3u6lvn62flLDhjMMr3SyzM0WDoFHdcCAI 78Uw== X-Gm-Message-State: AOAM5310dZipK2/a9nWytcKQ1vkqQiWjfeb6rUAsFPwuK6EenDsQl5Bx JUZHnEdokkSZAiOd88DqhfU3x0WtbZVzKk8W5ew= X-Google-Smtp-Source: ABdhPJxkM8eKR9RnC2A1aS6ZvKAVwpl8T0Nnenaus8OnEiI8utyefoISAgtP/5fxUJfGOCDWD1mITYWaR2IvCxHs79g= X-Received: by 2002:a2e:7c18:: with SMTP id x24mr10321334ljc.402.1597785429699; Tue, 18 Aug 2020 14:17:09 -0700 (PDT) MIME-Version: 1.0 References: <8f71e02f-cdc5-8c1b-5e92-01c13a18ee09@gmx.net> In-Reply-To: <8f71e02f-cdc5-8c1b-5e92-01c13a18ee09@gmx.net> Date: Wed, 19 Aug 2020 00:16:56 +0300 Message-ID: To: Andreas Leathley Cc: Jakob Givoni , Benjamin Eberlei , Derick Rethans , PHP Developers Mailing List Content-Type: multipart/alternative; boundary="000000000000f6f0b605ad2d685c" Subject: Re: [PHP-DEV] [RFC] Shorter Attribute Syntax Change RFC 0.2 From: benas.molis.iml@gmail.com (Benas IML) --000000000000f6f0b605ad2d685c Content-Type: text/plain; charset="UTF-8" On Tue, Aug 18, 2020, 1:42 AM Andreas Leathley wrote: > On 18.08.20 00:03, Benas IML wrote: > > And then boo-yah, 6 months later we want to implement a cool new > > feature to > > attributes (a lot of examples were said before, ain't repeating myself) > but > > we can't :(( because there is no ending delimiter and thus, we will run > > into parsing issues. > > Both @{} and @@{} would be possible as a future extension of the syntax > and would have no BC break at all, if extending the syntax is something > that would/should happen - just as possible suggestions. Introducing `@@{}` would: * be against `@@` "conciseness" ideology and would be longer than `@[]`/`#[]` * what's the point of creating a new syntax if we can just pick `@[]`/`#[]`? > It is likely though that the vast majority of attribute usage will be > quite simple (like the ones we have today with annotations: for routes, > for validation, for ORMs), so having a simple syntax for a feature which > is mostly used in a straightforward way does not seem that crazy. > "It is likely" is key here. So far, the only "positive" thing I have seen about `@@` is smaller BC break which is albeit questionable since I was able to find only 2 instances of a BC break for `@[]` (when searching top Composer packages). As for other "pros", let's be honest, no one cares that `@@` is 2 characters whereas `@[]` is 3 characters. > And about your condescending remark of people trying to add to the > discussion who have not "proven themselves in the PHP source code": > Having a discussion with people who have different viewpoints seems like > a big benefit for any project, because it is impossible to be an expert > At the end of the day, the so called "experts" are maintaining PHP source code. Having an opinion is okay but being ignorant about the issues which might arise to the maintainers is completely unacceptable. at C code, php-src, PHP code, all PHP frameworks, all the PHP libraries, > and all the ways PHP is used today - yet all that can be relevant for > language changes and the actual usage of new features, including the > syntax. > Best regards, Benas --000000000000f6f0b605ad2d685c--