1) $fx->new('EUR', 'USD'); 2) $fx->new('EUR/USD'); 3) $fx->new(base => 'EUR', quote => 'USD'); 4) $fx->new(pair => 'EUR/USD');
or does it make b*gger all difference?
can I get Moose to just accept a pair as a 'default' parameter (#2 above - if so how?)
Thanks
In reply to API Design by Galdor
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |