Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Can we get ->mo->yaml and ->mo->json? #230

Closed
mscha opened this Issue · 2 comments

3 participants

mscha Michael G. Schwern ben hengst
mscha

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.)

Michael G. Schwern schwern referenced this issue
Closed

Dump as XML? #231

Michael G. Schwern
Owner
ben hengst notbenh referenced this issue from a commit in notbenh/perl5i
ben hengst Adding the as_* methods as requested in #230
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.
89e8a05
Michael G. Schwern
Owner

Now they just need to be documented in perl5i::Meta::Instance. Don't forget that perl is now a backwards compatibility method and as_perl is the real one.

ben hengst notbenh was assigned
Michael G. Schwern schwern closed this in 4f01071
ben hengst notbenh was unassigned by mscha
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.