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
Can we get ->mo->yaml and ->mo->json? #230
Comments
Though I couldn't give a lick about "wasting" 16 bytes, making it even I have reservations about XML. JSON and YAML are fairly straight I request discussions about XML dumping happen in #231. Since we're going to have more dumping methods, I'd suggest a
This should be a fairly straight forward patch. The code is in Go to it! |
NOTES/POSSIBLE ISSUES: - the test is calling ::2 directly rather then latest. I was unsure on the going convention for a version specific change - I am not using alias to build the aliases. It seemed a bit heavy handed so I am using the old-style delegation.
Adding the as_* methods as requested in #230
Now they just need to be documented in perl5i::Meta::Instance. Don't forget that |
Having to type
$foo->mo->dump(format=>'yaml')->say
is way too annoying. And it wastes 16 bytes and a couple of seconds every time you use it.
Can we get
$foo->mo->yaml->say
as a shortcut, just like we have
$foo->mo->perl->say
?
(Same thing for json, and any other formats (xml?) that might be added for dump.)
The text was updated successfully, but these errors were encountered: