Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:109453 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 89888 invoked from network); 30 Mar 2020 15:40:43 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 30 Mar 2020 15:40:43 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 928151804E2 for ; Mon, 30 Mar 2020 07:06:37 -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_H3,RCVD_IN_MSPIKE_WL,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-ot1-f49.google.com (mail-ot1-f49.google.com [209.85.210.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, 30 Mar 2020 07:06:36 -0700 (PDT) Received: by mail-ot1-f49.google.com with SMTP id v2so13554468oto.2 for ; Mon, 30 Mar 2020 07:06:36 -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=CYNO8F+ED2sxpP1GryYV5jysLLh9DB8p3ZUw5NV1Rc8=; b=qqb1LzKO+NpdNxrH4aNoSSw6SiLOzvcRhZeX7txmdFOi2yMEBMkSoRagOn6qFHNkaV 3xK/4y9/tgLTbRvx/nZ0MePchCwM1s9GElF5cxygkYgadgw2wDwJerCX+KsT6MsVyjCo /USj8rCUgC6FPnLpYCFKonOqi4fXyvYhf4rNHQL86G+1Vjc3/0AOEGz8VzfBCV+T2XEZ 4GMSMI1LCxxLRTfHKOUKRf8hTPCPVLC32DpyVoTuoxjWToTqxaFvLllCwpDp/3KE1eeY dOx5zJNFx85dl/nnNmikGZy454pgGF/UaYVr00wcZ0y9m79RMaFzNMSqKMX1S6nKJSC7 PC+w== 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=CYNO8F+ED2sxpP1GryYV5jysLLh9DB8p3ZUw5NV1Rc8=; b=MPGMjehgBBYvyZRwYQAKDuwvqCZFmuI16lNYak111Lc+F0R43PXhWWxlLWZcA+LgX8 zM/Ul7vq07wr0I/em1Jt0/+asZD4IRjPQ6tsDPJ4Ap0CGb5Ml8yPsTDqlOijYp11NMGC sVJeRyXInKK3Wp5kAxiZH9fRAPleEkzlUnrHboh8bedu5q0FWbjIaZGu1Ij8FyJln8f9 YeA6cGd08DeFqO/bTzjk9F04Cs8JSZpgNe1NlIDJ8vw82+YJ64/ZDAMfUaF8RP5F9wCG 7ZBz9jsgJqL+YbuPNqD2Xq+Dcybwwxyj6ykEI5gobS1RZIRy1gFBA9eAHDnNEsYbqkXM 1mtw== X-Gm-Message-State: ANhLgQ3JROym9cThjBfLG5j7SmMG0qCxKzs4jTzjorWVN9NlytYxNZnV ebI2PX0ZE7hAxG7OOtbwefDZrKJ0eYn9nAAG+xY= X-Google-Smtp-Source: ADFU+vuSt7OvA8GDqTCBX/bIcrJ+ZcXG+XrUOfeUBeNiGCfK4Ua2nowmCzHWSfZSS3tIl2MxhiMmyIVqjUp33omP0/I= X-Received: by 2002:a05:6830:1e55:: with SMTP id e21mr9695525otj.233.1585577192180; Mon, 30 Mar 2020 07:06:32 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: Date: Mon, 30 Mar 2020 16:06:12 +0200 Message-ID: To: Sara Golemon Cc: Sherif Ramadan , PHP Internals Content-Type: multipart/alternative; boundary="0000000000004dd0a705a212f575" Subject: Re: [PHP-DEV] [RFC][DISCUSSION] Change var_export() array syntax to use short hand arrays From: benjamin.morel@gmail.com (Benjamin Morel) --0000000000004dd0a705a212f575 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable > > "Then why not use brick/varexporter?" As much as I'm pleased that people use this library, I consider it a shim, waiting for PHP to ultimately provide the same functionality. See the (object) cast for stdClass, that was supported by varexporter but was later added to var_export(). I don't see a reason not to follow with the short array syntax; the only expectation of people using var_export(), AFAIK, is to get valid PHP code; they don't care about the syntax, which will be retro-compatible as far as PHP 5.4, if that's even a consideration when PHP 8.0 is released. =E2=80=94 Benjamin --0000000000004dd0a705a212f575--