Thread (11 messages) flat view 11 messages, 4 authors, 2016-06-15

Re: [PATCH 2/3] send-email: drop misleading function prototype

From: Eric Sunshine <hidden>
Date: 2016-06-15 22:56:35

On Sun, Mar 31, 2013 at 9:40 PM, Junio C Hamano [off-list ref] wrote:
The subroutine check_file_rev_conflict() is called from two places,
both of which expects to pass a single scaler variable and see if
s/scaler/scalar/g

(note the /g)
that can be interpreted as a pathname or a revision name.  It is
defined with a function prototype ($) to force a scaler context
while evaluating the arguments at the calling site but it does not
help the current calling sites.  The only effect it has is to hurt
future calling sites that may want to build an argument list in an
array variable and call it as check_file_rev_confict(@args).

Drop the misleading prototype, as Perlcritic suggests.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help