-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Terse() #10
Add Terse() #10
Conversation
This makes DDS useful for dumping and recovering Perl data structures without needing to deal with intermediate scalars. I'm sure there's plenty of special cases I missed.
This would close https://rt.cpan.org/Public/Bug/Display.html?id=45420 |
On 17 March 2014 23:59, Michael G. Schwern [email protected] wrote:
If the intent is to make it easier to serialize or deserialize then adding do { Possibly what would be best would be to output the do { } and var If this intended for more readable dumps then that is a different I have to admit that using DDS for serialization/deserialization is Yves |
I'm using this for a thing where serialization performance does not matter, but accuracy does: Mite-Compiler. Serialization would happen at module build time, not compile nor runtime. Details here and here. DDS preserves the lexical environment in a way no other module does. I'm willing to be convinced this is a bad idea. The do trick seems like a good work around. Given this is going to do much more than "don't use names", the functionality needs a better name. One that describes the intent than the mechanics. |
On 18 March 2014 23:35, Michael G. Schwern [email protected] wrote:
Interesting, thanks. I am surprised this has practical utility, but at the
Cheers, perl -Mre=debug -e "/just|another|perl|hacker/" |
It occurs to me that DDS might not be usable by Mite because things like |
This adds Terse(), like in Data::Dumper, to disable the "$VAR = " part of the dump. This makes DDS more flexible to serialize and deserialize data structures.
I'm quite sure there's a ton of special cases I missed.