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

Re: square signatures

Thread Previous | Thread Next
November 15, 2017 12:23
Re: square signatures
Message ID:
On 14 November 2017 at 21:57, Zefram <> wrote:
> Leon Timmermans wrote:
>>                                           I quite frankly don't care about
>>the advantages for prototypes, they're clearly the wrong thing to optimize
> Prototypes are not the motivation for this proposal; re-enabling their
> short syntax is just a bonus.  The motivation is to make signatures and
> prototypes more distinct.  In allocating the delimiter characters, we're
> constrained by the fact that prototypes got there first and bagged parens.

Can we make the prototype part be in square brackets? Possibly version
controlled so that old code keeps working, but new code always treats
the parens as being signature definitions?


perl -Mre=debug -e "/just|another|perl|hacker/"

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