Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:108934 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 29473 invoked from network); 10 Mar 2020 03:27:38 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 10 Mar 2020 03:27:38 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 912021804E6 for ; Mon, 9 Mar 2020 18:48:26 -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.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL, SPF_HELO_NONE,SPF_NONE 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-yw1-f49.google.com (mail-yw1-f49.google.com [209.85.161.49]) (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 ; Mon, 9 Mar 2020 18:48:25 -0700 (PDT) Received: by mail-yw1-f49.google.com with SMTP id p69so12204856ywh.10 for ; Mon, 09 Mar 2020 18:48:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=newclarity-net.20150623.gappssmtp.com; s=20150623; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=djQwivPkVKI/j7yhQTEAm0v6SDYX3Gx5hPKt3NeS5l0=; b=qYHlUvRiOKdpnswj6ItLvyQHEf1XJDZzzXKDhs1tAm9ImLQS8GoGNdqZWVozdNzjb6 kaydYCKiW1XVa+pdRQbbAw9nxO+xNA0hg+Ujtdj3THCcRVoGEnfXswWyPngTdsEGECCX bW/X2vyyviPSgcWcH4v5zzSkGlUlP26O3UEVgPzOLxJw5f6iQ6pVD33zVong/FY5gAhe 9mfOM9WWqOPz29zR/LA8yEhZTAX1BkHoODraSML25Cje7LtLEvOq4uu9K9sfG8zrdhLX s7olFdubIzwVkoBApY18IaMv9X1SyaV5ltzLuURlRcYayT1QRLOWxAY9NOS2gQv4TZRW s73A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=djQwivPkVKI/j7yhQTEAm0v6SDYX3Gx5hPKt3NeS5l0=; b=oM/94UVzXe2JsUrJohdif2WTKYCCeus/VVoZ5JBdbNDGax+34P4xVXGbWPLWgmFacE b3kOcu0GOtcGmF7W8Ne+UdXLbeS78ReGzzb5QTy9ba45bMsXDz0JZYg+5/4Lm+wsQgJM vXwjgxAL9bTi2hvUn1lRkOLkTl7ADQg3xnkAWYyMkOLNBZnrQkr0PgNyCRirnrXnQSQb xfmHQ9bL0iYXLbqP+8SLib9FlHMFgBLK8dP67fwjzqLJcBtCQIeKYtIoEDIfYM9FekR5 ZotyJRNYSCln3QcASrGosnBWP4LJfQlnMf994rTCkzLlefSTC01kG0tuIPDNYxE8i3IZ aQOQ== X-Gm-Message-State: ANhLgQ2wCFF300Tjqov60SoV/rDD2utXBA2axrG2dmCyP6Jawt32AuCS b3AQZ/2liYIfQ/EbSRI1UcJCOg== X-Google-Smtp-Source: ADFU+vvafciWbYVatcj4kpKQM/HwlicKuCurBJC1SwV5hJj1MAC9LxnDjetzAKGEJit6cqwLn5Zqfw== X-Received: by 2002:a25:8381:: with SMTP id t1mr19766258ybk.266.1583804900069; Mon, 09 Mar 2020 18:48:20 -0700 (PDT) Received: from ?IPv6:2601:c0:c680:5cc0:686e:ddf3:3348:93e1? ([2601:c0:c680:5cc0:686e:ddf3:3348:93e1]) by smtp.gmail.com with ESMTPSA id g192sm19187066ywe.99.2020.03.09.18.48.19 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 09 Mar 2020 18:48:19 -0700 (PDT) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.11\)) In-Reply-To: Date: Mon, 9 Mar 2020 21:48:18 -0400 Cc: Benjamin Eberlei , PHP Internals Content-Transfer-Encoding: quoted-printable Message-ID: <76FEBA49-6CB7-4AC1-AD47-CED6175AB3C8@newclarity.net> References: <2227A758-3035-4A43-974C-C4461A096DFB@newclarity.net> To: Matthew Brown X-Mailer: Apple Mail (2.3445.104.11) Subject: Re: [PHP-DEV] [RFC] Attributes v2 From: mike@newclarity.net (Mike Schinkel) > On Mar 9, 2020, at 9:36 PM, Matthew Brown = wrote: >=20 > Saying "the syntax makes my eyes bleed" is slightly useless feedback. That was just a header. There was elaboration right below it: "I find angle brackets extremely hard to read and fear =E2=80=94 having = trained many newbies in programming =E2=80=94 that it will cause newbies = who see PHP to think it is too complex for them to consider learning." And there was a proposed alternative. > You could say "it's hard to scan", but I don't even think that's true = =E2=80=93 prepending everything << makes it easy to pick out attributes = in plain text at a glance, Not for me. Seeing the word "attributes" is far easier for me than = seeing "<<" and ">>." =20 I do of course understand YMMV. > Additionally this syntax has effectively been battle-tested at scale = already in PHP-like codebases =E2=80=93 thousands of engineers at = Facebook and Slack have used it over the last few years, and been = productive with it. Yeah, developers who have been vetted by two very successful tech = companies.=20 Something tells me neither of them hire moderately-to-lower skilled = developers who work in the trenches at many non high-flying tech = companies, nor do they hire newbies who are trying to decide if they = should learn PHP, or learn Javascript/Typescript instead (for example.) Just registering my objection to the syntax and proposing a readable = alternative. I would be highly surprised if there were not many others = in userland who would feel the same. But of course I unfortunately have = no way of validating that belief. -Mike=