[Date Prev][Date Next][Thread Prev][Thread Next][Author Index][Date Index][Thread Index]

Re: [zzdev] Re: (techy) Code specs?



> All functions should have prototypes

Why?

The other things are cosmetic, but this is functional, and most people
who say this have a misunderstanding of what prototypes are for in
Perl, so when I hear it from you, alarm bells go off in my head.

>   I do permit single-statement blocks within
>   braces to compress the brace,

I'd like to suggest that in such constructions you omit the trailing semicolon:

	if ($x) 
	{ do_something() }

instead of

	if ($x) 
	{ do_something(); }