Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:109500 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 34573 invoked from network); 1 Apr 2020 22:18:46 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 1 Apr 2020 22:18:46 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 9FCB31804C7 for ; Wed, 1 Apr 2020 13:45:15 -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.4 required=5.0 tests=BAYES_00, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, 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-qk1-f177.google.com (mail-qk1-f177.google.com [209.85.222.177]) (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, 1 Apr 2020 13:45:15 -0700 (PDT) Received: by mail-qk1-f177.google.com with SMTP id b62so1592362qkf.6 for ; Wed, 01 Apr 2020 13:45:15 -0700 (PDT) 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:reply-to :from:date:message-id:subject:to:cc; bh=kHzdoRpxU2tl8M1effbjqRKxqifcVsVFZBVmehMTLUE=; b=tuJTXWxsvb/2jqGjTtW/Ne5oUC/qHosRoeoSYPjJPnm7jvIQAcLFEkUUP1KI3Is6qA R9rQ/F0L+LW0Vgi5t2YEQ0wdzTPCpCZcVVKj+1ketD1NEsNHyDU3o5AQPym1GibmvY29 hGAWaaeWCOtGFs0FDkxFAgjEk7g2KOKQOp8z2WBlmvhUqTfdxomWYRb4Bis9u2dXlKK9 JTfpWfSlfsEhtBpQ+5dmRdUoFFrTKEfKtuRf3fiE73SWB9OknfoEKEEhgryJHj2ZYIL7 ps28QgfOQ+xvHRXwQ716sJD6UQoChYs050NEhfZpS7Fhgmgq6e2Ja04gCh6IIstxO78M LGOw== X-Gm-Message-State: AGi0PuatjflYz/JgcUNxV0b49PaLuag/mh/rUDO/XZGvscAtWPN157js pKlbnbBNcJjtOnKeEf6qUEVVXCraIueGQhOBE6zaMRO1 X-Google-Smtp-Source: APiQypIBZXWxJzHGqhL6ORjdjR7RIKCgbaw9Vbzl1GUAtU3DkeexD/WMSzwlIHycvh4C0DP6bxGQsLMSJgeXj5im/vw= X-Received: by 2002:a37:8d42:: with SMTP id p63mr185730qkd.182.1585773912115; Wed, 01 Apr 2020 13:45:12 -0700 (PDT) MIME-Version: 1.0 References: <5e84b4cd.1c69fb81.27249.d7f9SMTPIN_ADDED_MISSING@mx.google.com> In-Reply-To: Reply-To: bishop@php.net Date: Wed, 1 Apr 2020 16:44:36 -0400 Message-ID: To: Jakob Givoni Cc: php internals Content-Type: multipart/alternative; boundary="000000000000b9cad805a240c2e7" Subject: Re: [PHP-DEV] [VOTE] Compact Object Property Assignment From: bishop@php.net (Bishop Bettini) --000000000000b9cad805a240c2e7 Content-Type: text/plain; charset="UTF-8" On Wed, Apr 1, 2020 at 1:07 PM Jakob Givoni wrote: > > It seems to me it's pretty obvious it's not about the syntax anyway - > nothing would please the people who find COPA useless and any syntax > would be great for people who find it useful! > Anything in between just feels like discussing tabs vs spaces again > and again :-D I'm too old for that. > Not quite for me. I find the idea of COPA useful, but I am concerned about the mechanism, of which syntax choice is a component. I want a choice that (a) has good ergonomics, (b) doesn't complicate the parser, (c) is available to use, and (d) allows for the most general conversion of named values to object properties, while (e) validating the properties in the normal way. Overall, I'm a "no, not right now" on this. I'd be happy to start/join a working group to advance the concept, tho. --000000000000b9cad805a240c2e7--