[Date Prev][Date Next][Thread Prev][Thread Next][Author Index][Date Index][Thread Index]
Re: [zzdev] Re: (techy) Code specs?
- To: zzdev@xxxxxxxxxx
- Subject: Re: [zzdev] Re: (techy) Code specs?
- From: Mark-Jason Dominus <mjd@xxxxxxxxxx>
- Date: Sat, 05 Dec 1998 13:37:55 -0500
- Cc: mjd@xxxxxxxxxx
- Cc: Bek Oberin <gossamer@xxxxxxxxxxxxxx>, mjd@xxxxxxxxxx
- In-reply-to: Your message of "Sun, 06 Dec 1998 03:06:52 +1100." <19981206030652.C4841@xxxxxxxxxxxxxxxxx>
- Reply-to: zzdev@xxxxxxxxxx
> 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(); }