Re: Common Serialization Interface

2006-09-27 Thread Aaron Sherman
Larry Wall wrote: On Mon, Sep 25, 2006 at 09:02:56PM -0500, Mark Stosberg wrote: : : eval($yaml, :langyaml); : : Still, these options may not substitute for the kind of role-based : solution you have mind. I'm not sure it's wise to overload eval this way. Seems like a great way to defeat

Re: Common Serialization Interface

2006-09-27 Thread Luke Palmer
On 9/27/06, Aaron Sherman [EMAIL PROTECTED] wrote: BTW: for the above, it would be nice to be able to say: when m:i/^perl$/ {...} without all the noise. That is, it would be nice to have something like: when 'perl':i {...} Well, there are a few ways to do that: given lc

Re: Common Serialization Interface

2006-09-27 Thread Larry Wall
On Wed, Sep 27, 2006 at 10:43:00AM -0600, Luke Palmer wrote: : Well, there are a few ways to do that: : :given lc $lang {...} : :when { lc eq 'perl' } {...} : :when insensitive('perl') {...} With the latest change to S05 that auto-anchors direct token calls, you can now alo write:

Common Serialization Interface

2006-09-25 Thread Brad Bowman
Both Data::Dumper and Storable provide hooks to customize serialization ($Data::Dumper::Freezer|Toaster, STORABLE_freeze|_thaw). Other modules like YAML and Clone could also possibly reuse a common state marshalling interface. Is there some common element to this process which can be gathered

Re: Common Serialization Interface

2006-09-25 Thread Mark Stosberg
Brad Bowman wrote: Both Data::Dumper and Storable provide hooks to customize serialization ($Data::Dumper::Freezer|Toaster, STORABLE_freeze|_thaw). Other modules like YAML and Clone could also possibly reuse a common state marshalling interface. Is there some common element to this

Re: Common Serialization Interface

2006-09-25 Thread Larry Wall
On Mon, Sep 25, 2006 at 09:02:56PM -0500, Mark Stosberg wrote: : Brad Bowman wrote: : : Both Data::Dumper and Storable provide hooks to customize serialization : ($Data::Dumper::Freezer|Toaster, STORABLE_freeze|_thaw). : Other modules like YAML and Clone could also possibly reuse a : common