Stories
Slash Boxes
Comments
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More | Login | Reply
Loading... please wait.
  • Did I hear in my vague readings of p5p that this might be possible in 5.12?

    If so, it'd be SO nice to have:

    class Foo isa Bar {
      method init(%options) {
        $self->{some_key} = $options{some_key} // "default";
        ...
      }
    }

    • FYI, MooseX::Declare provides exactly that already (except you inherit with "extends", not "isa").
      • Yeah I know, but it's very heavyweight (brings in Moose).

        • Plain Perl OO is also very heavy, it brings in perl and entire OS. Are you sure that bringing in Moose is a legitimate concern, or are you just afraid to look at something popular out of fear that it might turn out to be better than complaining?