Sometimes when writing code, I write things like

 

Repeat for each line protein in allProteins

Repeat for each char aminoAcid in protein

Etc etc

 

I'd really like this to look like this, defining a new function 'synonym'

 

make protein a synonym of line

make aminoAcid a synonym of char

 

Repeat for each protein in allProteins

Repeat for each aminoAcid in protein

Etc etc

 

Does the extensibility/flexibility make code easier or harder to read/use?

 

 

 

________________________________

Prof R J Beynon
Proteomics and Functional Genomics Group
Faculty of Veterinary Science
University of Liverpool
Crown Street, Liverpool L69 7ZJ

        
________________________________

Phone: +44 151 794 4312

Fax: +44 151 794 4243

Email: [EMAIL PROTECTED]

http://www.liv.ac.uk/pfg

________________________________

 

This email was sent on 4/17/08 at 1:39 PM by Rob Beynon.

_______________________________________________
use-revolution mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution

Reply via email to