in reply to Converting Hashes to Objects
yet another useful module (yaum!)
I often miss Java's standard object methods toString, equals, compareTo, perhaps serialise. But if you do implement these you are building a Class builder I guess. A (more) standardised class builder.
Another thought is to provide a *safe and proper* way to convert from a string representation of a perl data structure(pds) to pds via an object: fromString or deserialise. BUT AGAIN, that's moving away from keeping it all simple and compact and risk offering something that's already out there. The plus point is that you are setting a standard. Which may be against Perl spirit (edit: i mean my suggestions)?
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Converting Hashes to Objects
by haukex (Archbishop) on May 18, 2020 at 12:50 UTC | |
by bliako (Monsignor) on May 20, 2020 at 10:04 UTC | |
by haukex (Archbishop) on May 20, 2020 at 10:23 UTC |
In Section
Meditations