Re: Proposal: short_var_export($value, bool $return=false, int $flags=0)
| From: | Kamil Tekiela | Date: | Wed, 20 Jan 2021 16:14:23 +0000 |
| Subject: | Re: Proposal: short_var_export($value, bool $return=false, int $flags=0) | ||
| References: | 1 2 3 4 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-112939@lists.php.net to get a copy of this message | ||
>
> I am considering to try and introduce a __repr() magic method that is
> similar to the __repr__() method from Python.
No more magic methods, please. We have too many already.
As the intent of the resulting string is to obtain PHP code that will
>
construct the variable, another option might be: var_constructor().
Wouldn't this be extremely confusing given that we use the name constructor
for OOP?