in reply to Re^4: Exposing minimum required perl version ('use x.y.z') to Perl code during runtime?
in thread Exposing minimum required perl version ('use x.y.z') to Perl code during runtime?
Yes, I know what you meant by a good default value. My point is that as Data::Sah allows the user to generate strings of Perl code, it's reasonable user behaviour to be able to expect to output those strings of code to files, and possibly evaluate those files under a different version of Perl.
So the best default would be to output code which will run on the widest possible range of Perl versions that you're willing to support.
(I do something similar with Type::Tiny which generates code that runs successfully on Perl 5.6.1 through to the latest blead.)
|
|---|