user-pic

Peter Edwards

  • Commented on Exploring Type::Tiny Part 1: Using Type::Params for Validating Function Parameters
    Good articles Toby, very helpful, and glad to see you cover how to make it work for people stuck with some perl 5.8.8 legacy customers. One typo, in the perl 5.8 example use Type::Params qw(compile_named); use Types::Standard qw(FileHandle HasMethods Str);...
  • Commented on The Future of Perl 5
    +1 to OO classes and optional type checking in core. It would save time, effort and errors, and give more standardised, readable code (while still letting you TIMTOWTDI)...
Subscribe to feed Recent Actions from Peter Edwards

  • Erez Schatz commented on The Future of Perl 5

    I gave it much thought before, mostly when I wondered why did so much effort was given to something like "postfix dereferencing" that is nothing more than syntactic sugar (or, to my taste, syntactic salt) rather than a proper object system, Class::MOP or otherwise.

    In other words, since the perl5porters is a small, focused team of volunteers …

  • Duncan White commented on The Future of Perl 5

    Hi Ovid, your LRU example is indeed lovely syntax, I'd certainly use it - and I'm not a Moose user, I like the original bless-based Perl 5 object system. For my own amusement, I wrote a bless-based version. It's shorter than your original Moose version, although of course I had to write a new function which Moose does for you.

    But is anyone likely to implement "class" syntax in Perl 5 anytime soon? If not, it's just a pipe dream, isn't it?

    Finally, I note that the "method" syntax is already available in Perl 5 via either Method::Signatures or (my preference) Function::Para…

  • Toby Inkster commented on Exploring Type::Tiny Part 1: Using Type::Params for Validating Function Parameters

    Oops, yeah.

  • davebaker commented on Exploring Type::Tiny Part 1: Using Type::Params for Validating Function Parameters

    Another tiny typo in several of the examples:

    use Type::Params qw(compile named);

    should be

    use Type::Params qw(compile_named);

    THANKS for this great article!

  • Toby Inkster commented on Exploring Type::Tiny Part 1: Using Type::Params for Validating Function Parameters

    There is actually an underscore in all the examples. The combination of the font and line height makes the underscore invisible though. If you copy and paste the examples, you'll see it's there.

Subscribe to feed Responses to Comments from Peter Edwards

About blogs.perl.org

blogs.perl.org is a common blogging platform for the Perl community. Written in Perl and offering the modern features you’ve come to expect in blog platforms, the site is hosted by Dave Cross and Aaron Crane, with a design donated by Six Apart, Ltd.