Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:106686 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 50336 invoked from network); 21 Aug 2019 11:14:14 -0000 Received: from unknown (HELO mail-io1-f43.google.com) (209.85.166.43) by pb1.pair.com with SMTP; 21 Aug 2019 11:14:14 -0000 Received: by mail-io1-f43.google.com with SMTP id t6so2964420ios.7 for ; Wed, 21 Aug 2019 01:44:35 -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=lu9j2RXOgpU7SZiZJtKNEt4861Qy9OkW1Zoa+bnqydI=; b=L2jddfJJVL4DwdBH3e6/QVfgQqmtRtopZjx1s5OkflFthtu/1RXeJrt8Nqx08dcWRo 04q7z69EO8QnlbSAEXIlckMX3/5MLe/pEdQr9TpoTDLtjQ774wJadVFIIMzro4V9oHHB Kgi98M8jJcJ/gPmLcR1/YFRVaRPCcgCEIruDf6POIka6S5lkjBjo1oOGKyD6uXGzaNqW MrBkrSZ9OpaS49L2LIOwfB+5V4ecgkEcW7leRzLJGlb5xVWXfEe/1hbneTB4H+bexyhs vpfbxjBjV0n1EEuwA2IMoBXuAMvJJGeDglI3oGAzpZQnYZb1kyl+J3fsq4TXb7GIhBYE 21IA== 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=lu9j2RXOgpU7SZiZJtKNEt4861Qy9OkW1Zoa+bnqydI=; b=IfDlljpy91rTTE/uo9FECg2NTRXHn/+FP8a347fG273eI1HBe1V9Zekpd4eip2jDZ5 Xfw92fl3JN/z4Kk+1Q74sH0qQXXAjKv+GepG2T712fPvZEPtVKx5dX+RdA3wnQHQOw8V vpINp+Z4juPwcebrT0H9NYTDzEy8HjtiwGcG2arqkThvTIA906DRlHZr2B5KdY//CSTV 0UlmTQ6NIRtEz3VfXVttGEzm+YVYAaU0iuFSjut7F77X7N0aa+nA20T7WrEZ5Ru+879p TdUdqzNpY6eHE9VRqPCkq/WmYpI9FE36Lo/UpgE/Olxwkt5LoTNlP6rj3qv+4QZs4H5I mI2g== X-Gm-Message-State: APjAAAUupwpBpnf9BdcjUZXIn08M5b38oDWHoqXBv8A928MlxA3ncwJv 10hOcgTU+dic8lxj6bqPym95CBxJyGlA0Vrjkxg= X-Google-Smtp-Source: APXvYqxXIzPzxkGIzW9srymsTjc7Qfye25JGahxnQELOeo1f4bzYRZG/G1aHjP5XCVbCfZrf6CpcmpMr7uEGqmgOrow= X-Received: by 2002:a6b:cf17:: with SMTP id o23mr13096467ioa.176.1566377075071; Wed, 21 Aug 2019 01:44:35 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: Date: Wed, 21 Aug 2019 10:44:22 +0200 Message-ID: To: Andreas Hennings Cc: =?UTF-8?B?0JLQu9Cw0LQg0JzQsNC60LjQvQ==?= , Sara Golemon , PHP internals Content-Type: multipart/alternative; boundary="00000000000024edd305909c95b3" Subject: Re: [PHP-DEV] RFC: var_export - short syntax for array From: benjamin.morel@gmail.com (Benjamin Morel) --00000000000024edd305909c95b3 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable > > There are other issues with the format besides just the long array syntax= . > E.g. opening bracket on same line? Indentation? For the record, I have a userland implementation of var_export() that does all of this: - (object) array export of stdClass for PHP < 7.3 - short array syntax - bracket on the same line - array of scalars on a single line (optional) - export classes without __set_state() - export closures https://github.com/brick/varexporter I'm currently working on supporting object identity and circular references= . Feedback welcome! =E2=80=94 Benjamin --00000000000024edd305909c95b3--