Re:Never Use toString() for Behaviour
by mrkeen on Wednesday December 04, 2019 @09:27AM
(#21702400)
That %p approach sounds perfect.
If they wanted to make it worse, they could make it so you could call %s on any object, and if it wasn't defined, it would "conveniently" fall back to %p instead.
Then someone could could write an article called "Never Use %s for Behaviour"
If they wanted to make it worse, they could make it so you could call %s on any object, and if it wasn't defined, it would "conveniently" fall back to %p instead.
Then someone could could write an article called "Never Use %s for Behaviour"