[LA.pm] coding guidlines, inline functions

Ofer Nave ofer at netapt.com
Tue Dec 7 13:08:19 CST 2004


1) coding guidlines

I just finished reading this document entitled "Conventions and Guidelines 
for Parrot Source Code":

	http://dev.perl.org/perl6/pdd/pdd07_codingstd.html

Based on my C coding experience, I tend to agree with most of it, and 
found it very well written (though it would be wise to include an example 
under each point, instead of just the more obscure ones).

Has anyone seen a document similar to this for Perl development?  I know 
it goes against the perl philosophy to try to standardize on coding style 
- hence not finding one anywhere on CPAN (where it would be most 
appropriate), but for my own personal use (and perhaps within my dept), it 
would be neat to see one already written by an experienced team of perl 
programmers who have been using and evolving the document over time.

2) inline functions

Is there any analog in perl to C inline functions (i.e., macros)?  In 
other words, is there an elegant way in perl to make things modular for 
code maintenance purposes, but empower the perl parser/compiler to 
optimize away unnecessary function call overhead?

-ofer



More information about the Losangeles-pm mailing list