Skip Menu |

This queue is for tickets about the Algorithm-MedianSelect CPAN distribution.

Report information
The Basics
Id: 5495
Status: resolved
Priority: 0/
Queue: Algorithm-MedianSelect

People
Owner: schubiger [...] cpan.org
Requestors: rjbs [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Wishlist
Broken in: (no value)
Fixed in: (no value)



Subject: interface
The interface is awkward. Why does it want an array reference? A list would be much more in line with normal design practise. The code doesn't seem to require an arrayref for any particular reason. Backwards compatibility would be easy to maintain with something simple like @items = (ref $_[0] eq 'ARRAY') ? @{$_[0]} : @_;
My main concern was speed, but perhaps I've commited premature optimization. But again, you're probably right.