Package::Strictures

Facilitate toggling validation code at users request, without extra performance penalties
Download

Package::Strictures Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Publisher Name:
  • Kent Fredric
  • Publisher web site:
  • http://search.cpan.org/~kentnl/

Package::Strictures Tags


Package::Strictures Description

Facilitate toggling validation code at users request, without extra performance penalties Developer commentsOften, I find myself in a bind, where I have code I want to do things properly, so it will detect of its own accord ( at run time ) misuses of varying data-structures or methods, but the very same tools that would be used to analyse and assure that things are going correctly, result in substantial performance penalties.Package::Strictures is a Perl module, and the infrastructure I hope builds on top of it, may hopefully provide an 'in' that lets me have the best of both worlds, fast on the production server, and concise when trying to debug it ( that is, not having to manually desk-check the whole execution cycle through various functions and modules just to find which level things are going wrong at ).In an ideal world, code would be both fast and concise, however, that is a future fantasy, and this here instead aims to produce 80% of the same benefits, but now, instead of never.SYNOPSISIMPLEMENTING MODULES package Foo::Bar::Baz;our $VERSION = '0.01001318'; use Package::Strictures::Register -setup => { -strictures => { STRICT => { default => '' }, }, }; if( STRICT ) { /* Elimintated Code */ }See Package::Strictures::Register for more detail. Requirements: · Perl


Package::Strictures Related Software