[Bioperl-l] For CVS developers - potential pitfallwith"returnundef"

Hilmar Lapp hlapp at gmx.net
Wed May 31 21:25:48 UTC 2006


On May 31, 2006, at 2:50 PM, Chris Fields wrote:

> I've seen a lot of methods (mainly get/setters)
> that are essentially copied multiple times in the same or across  
> similar
> modules to save time.  You could see a scenario where, in those  
> instances,
> so-called 'bad code' would spread quite quickly.

This will usually be code generated by macros, e.g. the emacs macros  
for getter/setter generation for properties.

If the macro generates wrong code, that's indeed pretty bad. (We've  
had that.) OTOH it should be spotted quickly as well. And macro  
changes or new macros should probably be scrutinized by all eyes  
watching ...

	-hilmar

-- 
===========================================================
: Hilmar Lapp  -:-  Durham, NC  -:-  hlapp at gmx dot net :
===========================================================








More information about the Bioperl-l mailing list