>
> "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

Reply via email to