gjospin/Amphora-2 — Issue #70: Use perl named argument style for function calls
Author: koadman
Created: 2012-02-04 22:41:14+00:00
State: open
Labels: medium

Currently function calls use unnamed parameters, e.g. functions start by shifting in their parameters:
`sub cure_cancer{
my $surgery = shift;
my $chemo = shift;
}`

calls must take the form: `cure_cancer($surgery, $chemo)` even if `$surgery` is an optional parameter.

This is not as nice as the named parameter approach:
`cure_cancer( 'surgery' => 0, 'chemo' => 1 );`

or just:

`cure_cancer( 'chemo' => 1 );`

if surgery defaults to 0.