Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:107072 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 76186 invoked from network); 13 Sep 2019 12:11:03 -0000 Received: from unknown (HELO php-smtp3.php.net) (208.43.231.12) by pb1.pair.com with SMTP; 13 Sep 2019 12:11:03 -0000 Received: from php-smtp3.php.net (localhost [127.0.0.1]) by php-smtp3.php.net (Postfix) with ESMTP id 642FD2D2032 for ; Fri, 13 Sep 2019 02:47:10 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on php-smtp3.php.net X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE autolearn=no autolearn_force=no version=3.4.2 X-Spam-ASN: AS3215 2.6.0.0/16 X-Spam-Virus: No Received: from mail-pg1-x52e.google.com (mail-pg1-x52e.google.com [IPv6:2607:f8b0:4864:20::52e]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by php-smtp3.php.net (Postfix) with ESMTPS for ; Fri, 13 Sep 2019 02:47:09 -0700 (PDT) Received: by mail-pg1-x52e.google.com with SMTP id c17so7220132pgg.4 for ; Fri, 13 Sep 2019 02:47:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=newclarity-net.20150623.gappssmtp.com; s=20150623; h=from:message-id:mime-version:subject:date:in-reply-to:cc:to :references; bh=wT9PEA067E9QdUfGNdC5QCC3AJJLHs8bWEdbNug6xjE=; b=WAYiWoJ0zZuF5NSRWbsBVm/Zx8JJdTb/0zyRaUmXIXE6ltzlDnbmaSlNrD+I5Qqpi7 XS0GplK7kHYkrF3OGieHTnBd8dv8oKbCuuBN4gPBTi+pspqUHazqdt5u2Ljz8VC0Kr0a s6+EOdUD1PiH8aZNNAW0+TMnW+5mLxjIwAb8D2vNsoEBDJBnI47aywPW3/nUl1rCOyht LyzxLZEqi5DeUZPVUe/W0hk4taYO3wwI8UKshDlQMLUDdDnOmb0eiqTEYrSk1xQo38u8 WWjD9aT9oYz3PBEoZYwqmc9FjvivonH2Op6ucttrWdfFDNb7ppK9wanKrp7wiRG+DE/B 9OOA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:message-id:mime-version:subject:date :in-reply-to:cc:to:references; bh=wT9PEA067E9QdUfGNdC5QCC3AJJLHs8bWEdbNug6xjE=; b=VXLoMevOpOdfGwQ6dk8e43Dffy/bhVZIRbiT+2v/ZZpFWLpMNAmzbX8XI8peocb5Wn FtQh9XbyD7STltLdM9Y4FPFqA5fBq2lq95JxaHScILbZ8FqBcoHuA+sRBu6qOkdzNjBG 7A3W3shpVWPZSj5EJ3p2fT4GcR/uV8X9Gw+ba93x8p0B+830Ryo7Hh9gyTOEn0wbSl+d k4pUKN9w/RtiSApmoqjlfRvDz/dOdZ3HuOQ/4JZ9dXF9grrX7vjX9+HyE/FAfUC0ouFQ cXIClbmq0CIt58/RsRP9SmeaiYZq+5O8vfg7fUcEtloBPTaN4RtxsoKTTQ7RaeJvhYuy 9bug== X-Gm-Message-State: APjAAAWh/tq1Wq9mKnnS6jkONE7zswm08nQND7R2Ir/zB4dBGwE5IHnR USzEH+DW5ng8k9ayXmmJQVdxPA== X-Google-Smtp-Source: APXvYqxVotDG6viSNcfBy8239nPqzX2JfwdSNQgY0Kl8byfIJyA+C4faLHLGpmALHI83fp5vmzje2w== X-Received: by 2002:a17:90a:fc8:: with SMTP id 66mr4141677pjz.134.1568368028976; Fri, 13 Sep 2019 02:47:08 -0700 (PDT) Received: from [192.168.202.38] (50-252-183-45-static.hfc.comcastbusiness.net. [50.252.183.45]) by smtp.gmail.com with ESMTPSA id n66sm44966227pfn.90.2019.09.13.02.47.07 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 13 Sep 2019 02:47:08 -0700 (PDT) Message-ID: Content-Type: multipart/alternative; boundary="Apple-Mail=_C58FABE4-A770-4189-9B1D-F1EDCBE7CA6F" Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.11\)) Date: Fri, 13 Sep 2019 02:47:07 -0700 In-Reply-To: Cc: Arnold Daniels , PHP Internals To: =?utf-8?Q?Micha=C5=82_Brzuchalski?= References: <74C03BB1-28DF-4694-A91D-2516C545F8B2@gmail.com> <3CA484B0-BCA3-4A2B-B2A6-8B845F9C462B@newclarity.net> <2CA1F9C5-AC54-4E45-AE9E-20BB32BD7093@newclarity.net> X-Mailer: Apple Mail (2.3445.104.11) X-Envelope-From: Subject: Re: [PHP-DEV] [RFC] Object Initializer From: mike@newclarity.net (Mike Schinkel) --Apple-Mail=_C58FABE4-A770-4189-9B1D-F1EDCBE7CA6F Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 > On Sep 13, 2019, at 2:39 AM, Micha=C5=82 Brzuchalski = wrote: > $obj->foo =3D> 123; > Simply, that's not the way you initialize object property values. So by the same logic this should be PHP's way to initialize array = elements, right? $arr['foo'] =3D> 123; But it is not. Obviously we both know that this is the correct syntax: $arr['foo'] =3D 123; So that is why I think it would be more consistent in PHP for object = initializers to use "=3D>" instead of "=3D." But, I myself will not belabor the point beyond this message. Either = others will agree with you or they will suggest to change to "=3D>" too. > { $foo =3D 123 }; // unexpected "}" cause of missing ";" > $bar =3D { $foo =3D 123 }; // unexpected "{" cause it's not allowed in = this context > Both examples are syntax error. > You can use {} for separating blocks of code, but now if you wanna = assign value. > Everything considered syntax error can be used for feature shaping. Hmm.=20 Ok, I will let Arnold reply to you on this if he feels that your reply = did not address his concerns. -Mike= --Apple-Mail=_C58FABE4-A770-4189-9B1D-F1EDCBE7CA6F--