develooper Front page | perl.perl5.porters | Postings from December 2017

Re: Urgent subroutine signatures problems

Thread Previous | Thread Next
From:
Eirik Berg Hanssen
Date:
December 23, 2017 18:23
Subject:
Re: Urgent subroutine signatures problems
Message ID:
CAHAeAG6BKjstDqfqYE=UwVE66tnAvAvUohuYQyu7dmTNBR1bCw@mail.gmail.com
On Sat, Dec 23, 2017 at 5:38 PM, Sawyer X <xsawyerx@gmail.com> wrote:

>
> We can document that every compilation-affecting subroutine attribute
> should be used before. Another way is to add a mechanism to register an
> attribute as "requiring compilation," allowing us to croak about them if
> we see them after signatures. Not an optimal solution, to say the least.
>

  If you're really considering this, please go the other way: Require such
registration of the attribute before allowing it after the signature.

  "All's fair if you predeclare."  Not if you fail to register your
requirements.


Eirik

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