[Bioperl-l] Philosophy, BioPerl Object Creation

Hilmar Lapp hlapp at gnf.org
Wed Mar 26 15:38:16 EST 2003


On Wednesday, March 26, 2003, at 02:45  PM, Jamie Hatfield ((AGCoL)) 
wrote:

>> Sent: Wednesday, March 26, 2003 2:23 PM
>> On Wednesday, March 26, 2003, at 03:03  AM, James Gilbert wrote:
>>
>>> One thing I dislike about the bioperl 'new' system
>>> is that if you mistype the name of a paramter it
>>> just gets silently ignored.
>>
>> Yeah this hit me too on several occasions. This should go
>> onto the list
>> of things we should address at some point. Is the perl6 impl of named
>> parameters going to solve this for us?
>
> Why would this be hard to fix?  Wouldn't you just have to change the
> _rearrange method to remove the parameters that were used?
>

No. The problem is deeper. We pass the parameters flattened in an 
array, so you can only remove parameters on the way down. Most 
initialization chains call the inherited constructor first, keeping the 
argument list intact. Also, parameters may be used in more than one 
level in the hierarchy.

	-hilmar
-- 
-------------------------------------------------------------
Hilmar Lapp                            email: lapp at gnf.org
GNF, San Diego, Ca. 92121              phone: +1-858-812-1757
-------------------------------------------------------------



More information about the Bioperl-l mailing list