Re: [RFC][DISCUSSION] Change var_export() array syntax to use short hand arrays

From: Date: Mon, 30 Mar 2020 14:06:12 +0000
Subject: Re: [RFC][DISCUSSION] Change var_export() array syntax to use short hand arrays
References: 1 2 3  Groups: php.internals 
Request: Send a blank email to internals+get-109453@lists.php.net to get a copy of this message
> > "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. — Benjamin

« previous php.internals (#109453) next »