Alter wantarray conditions to eliminate nearly duplicate branch #5

Merged
merged 1 commit into from Oct 28, 2011

Projects

None yet

2 participants

@rwstauner

the hashref and list branches were exactly the same,
and the arrayref branch only differed slightly.

benchmarks were indistinguishable.

A few minor changes to the wantarray checks and poof! half the function's gone :-)

This is less code to maintain,
but also somewhat a matter of style, though, so it's just my suggestion. TIMTOWTDI

@rwstauner rwstauner Alter wantarray conditions to eliminate nearly duplicate branch
the hashref and list branches were exactly the same,
and the arrayref branch only differed slightly.
8f688a8
@doherty
Owner

sexy!

@doherty doherty merged commit 680cb79 into doherty:master Oct 28, 2011
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment