develooper Front page | perl.perl5.porters | Postings from August 2016

Re: merging optimising sub signature work so far

Thread Previous | Thread Next
From:
Zefram
Date:
August 8, 2016 18:19
Subject:
Re: merging optimising sub signature work so far
Message ID:
20160808181935.GA15993@fysh.org
Dave Mitchell wrote:
>*  Moves the parsing of the signature (i.e. the '($a,$b=1,@c)' thing)
>   from custom code in toke.c to normal yacc rules in perly.y;

You've also removed the parse_subsignature() function, and that's
a problem.  It was intended to be an API function, once signatures are
no longer experimental.  It needs to be an API function in order to make
it feasible for an XS module to parse the top-level "sub" syntax itself,
which is needed as a base on which to create any syntactic variation of
subroutine syntax.  It doesn't matter which way the actual parsing is
done; just the interface needs to remain.

-zefram

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