6 thoughts on “Better Perl: Subroutine Signatures and Type Validation presentation slides

  1. Thanks very much for this overview. I’m pinning it on my pinboard.

    I suggest changing the title of this post to Better Perl with subroutine signatures and type validation”. That’s really what the post is about. It will help people find your post better, and it makes it easier for folks when they bookmark it.

  2. In some conversation on this topic, I distinctly remember typing how I didn’t think it was such a problem not to have signatures, that it’s not that difficult to keep things straight.

    Well, I’ve just spent a weekend working on a project and signatures would have SURELY helped as I changed the api from passing around bits and pieces to passing around a single data structure.

    Can’t use string (“Pod::Parser”) as a HASH ref while strict refs” in use at bin/​pmdh-​modulate line 517.”

    :face-​palm :rotf

    • The good news is that with modules like Type::Tiny and Params::ValidationCompiler you can introduce it gradually into your codebase.

Comments are closed.