user-pic

ilmari.org

  • Commented on p5-mop, a gentle introduction
    There is a 'repr' trait that lets you specify which type of reference to use for the object ID, so you can extend non-mop classes. You'd have to use accessors for inherited attributes, though....
  • Commented on Simplified error cleanup with Filter::Cleanup
    See Scope::Cleanup for a solution that doesn't source filters at all....
  • Commented on Perl testing with Jenkins/Hudson: avoiding some pitfalls
    You can Point TAP::Harness::Archive at an empty directory to get per-script output in the form expected by the plugin....
  • Commented on smart-matching and sub funhouse
    You can already call subs as methods, but to avoid confusion with a method called "sub", you need to wrap them in a scalar deref: file('file.txt')->${\sub ($f) { say $f->slurp; }};...
  • Commented on Perl and Parsing 12: Beating up on the "use" statement
    Wow, I had no idea the perl parser was that loose. A better approach than expanding the allowed list syntaxes would be to deprecate the reversed syntax and make it emit a warning, and then remove it completely in a...
  • Commented on DBD::SQLite 1.35 release planned for 22nd of November
    DBIx::Class passes its test fine with 1.34_02, except for two which were relying on undocumented behaviour (exact syntax of the 'datatype mismatch' exception and DISTINCT() and GROUP BY on the same column implicitly sorting the result identically). These are now...
  • Commented on 80% Hacks
    I ran this on a part of the work codebase, and it didn't find bugs so much as old, dead, now-useless, leftover bits of code. Which should of course also be got rid of, but it's less urgent than outright...
  • Commented on Moving to Amsterdam to work for Booking.com
    On X11, by using the compose key, specifically "Compose A E"....
  • Commented on Book review: Catalyst 5.8 The Perl MVC Framework
    search.cpan.org has permalinks directly to the documentation for individual modules, they're linked from the top-right corner of each page and look like this: http://search.cpan.org/perldoc?DBIx::Class::Schema::Versioned...
Subscribe to feed Recent Actions from ilmari.org

  • Su-Shee commented on p5-mop, a gentle introduction

    I was mostly professing my greed to have it sooner rather than later. :)

    I like mop-redux and as one of "us common perl folks" and "regular users" I'd appreciate it a lot if we'd finally have SOMETHING released with core.

    I'm just the vox populi nagging "are we there yet?".. :)

  • Diab Jerius commented on p5-mop, a gentle introduction

    I am concerned by the loss of 'undef' as a value for attributes.
    intrinsic meaning.

    For example (pardon the pseudo-code) let's say that class Foo's constructor
    accepts an optional object, bar.

    In Moo+Types::Standard, one might do this

    has 'bar' => (
    is => 'ro',
    isa => InstanceOf ['Bar'],
    required => 0,
    );

    Let's posit that Bar's constructor returns undef upon failure. Old
    school

    Foo->new( bar => Bar->new );

    will ca…

  • Stevan Little commented on p5-mop, a gentle introduction

    Diab - We do not treat undef as special, the decision was made to let undef work for has exactly as it works for my. Which is not how it works in Moo{se}, so in a sense we are returning the use of undef back to its natural perlish state, just as Larry intended.

  • :m) commented on p5-mop, a gentle introduction

    Thank you for doing this.

    My first impression: I mostly like how the code looks and that we get "safe" objects.
    In a small example, the error messages I got were sensible and the script loaded fast.

    I wonder if we could get the "colon-field notation" used by Object::InsideOut, e.g.
    https://metacpan.org/module/Object::InsideOut#ATTRIBUTES

    As for a more in-dept analysis it would be cool to read more posts of Perl gods regarding the mop.

  • Stevan Little commented on p5-mop, a gentle introduction

    nObody - it should be backportable to at least 5.16 and possibly even 5.14 (as a less performant CPAN version (basically the prototype with improvements and tweaks)).

    As for the new syntax, actually it is not anything terribly new, its been part of Perl 6 for a good ~10 years now

    ;)

Subscribe to feed Responses to Comments from ilmari.org

About blogs.perl.org

blogs.perl.org is a common blogging platform for the Perl community. Written in Perl with a graphic design donated by Six Apart, Ltd.