On 23 July 2015 at 07:11, Alex Becker <asb.c...@gmail.com> wrote:
>
> Perl now has subroutine signatures. However, they are marked as experimental
> feature.
> As I really like it, I'm always tempted to use it.
> On the other hand, I don't want to wast efforts to something I have to roll
> back.
>
> So, does anyone know the tendency if signatures are going to stay?


It depends who your userbase is.

If your user base is narrow and you have full control over what
version of Perl will be used all the way though deployment, and you
can guarantee you'll never need to downgrade to an earlier perl to get
around a problem, then you can use whatever features you like in the
newest perl you like.

But if you're writing modules with the intent on somebody else using
them ( such as publishing to CPAN ), you may wish to be less casual
about signatures, because they ( for now at least ) can arbitrarily
limit your audience of usefulness.

Obviously your modules will be less useful for users who are stuck on
old versions of perl and have no way of upgrading even if they wanted
to =).

But its ultimately your choice, and if you don't care about that
audience, then you don't have to pander to it.


-- 
Kent

KENTNL - https://metacpan.org/author/KENTNL

-- 
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to