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

Re: De-experimentalising "signatures"

Thread Previous | Thread Next
From:
Dan Book
Date:
March 22, 2021 16:23
Subject:
Re: De-experimentalising "signatures"
Message ID:
CABMkAVUUDi4840ZfgiBXQmpvP+2C2qtuB78A2e6JjmHGSe564g@mail.gmail.com
On Mon, Mar 22, 2021 at 12:14 PM Leon Timmermans <fawaka@gmail.com> wrote:

> On Mon, Feb 15, 2021 at 1:35 PM Dave Mitchell <davem@iabyn.com> 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.

-Dan

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About