> On Jan 20, 2021, at 10:28, Marco Pivetta <ocram...@gmail.com> wrote:
> 
> On Wed, Jan 20, 2021 at 5:27 PM Ben Ramsey <b...@benramsey.com> wrote:
>> Taking this to a new thread so I don’t derail the `short_var_export()` 
>> thread.
>> 
>> Dik, I like this addition, but I think the name “repr” might be confusing to 
>> PHP developers who aren’t familiar with Python idioms. PHP function names 
>> and coding standards within the community tend to lean more toward verbosity 
>> than terseness, when it comes to naming things.
>> 
>> Perhaps we should follow the lead of `__toString()` and use 
>> `__toRepresentation()`? Maybe also introduce a `Representable` interface, 
>> like `Stringable`? https://wiki.php.net/rfc/stringable
> 
> Ooof, can we just avoid more magic methods overall? :|


I think that ship has sailed, friend. ;-)

Cheers,
Ben

Attachment: signature.asc
Description: Message signed with OpenPGP

Reply via email to