develooper Front page | perl.perl5.porters | Postings from March 2021

Re: De-experimentalising "signatures"

Thread Previous | Thread Next
Dan Book
March 22, 2021 16:23
Re: De-experimentalising "signatures"
Message ID:
On Mon, Mar 22, 2021 at 12:14 PM Leon Timmermans <> wrote:

> On Mon, Feb 15, 2021 at 1:35 PM Dave Mitchell <> wrote:
> > I have pushed for keeping them experimental because I want to change
> > things so that @_ isn't populated in signatured subs (or more precisely
> @_
> > isn't localised and is still the @_ of the caller), and that breaks
> > backwards compatibility.
> That does sound reasonable. I'm not sure why we haven't done so
> already; that would have prevented this situation.
> > It's also dependent on other new signature
> > features being added which do away with needing access to @_.
> As long as it still exists when no signature is present, I think that
> doesn't need to be a problem?

Without either access to @_ or some form of the proposed features such as
predicates, signatures prevent certain abilities in argument parsing.

But as ilmari mentioned in another part of the thread, this backcompat
issue is solvable by another feature flag if necessary.


Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About