knexus has asked for the wisdom of the Perl Monks concerning the following question:
Anyhow, I am questioning the use of prototypes and perhaps my understanding of their purpose in perl. After reading a little on the subject and considering some things mentioned here, I am just uncertain if I should use them or not.
In other programming experience I had developed the opinion that protypes were a good thing as they provide usage enforcement. Plus IMHO a list of subs with their parameters at the beginning of a file gives me a quick insight, i.e. aiding the understanding of the program or module.
However, if I understand what it being said in this post then I'd think twice about using prototypes if performance is at issue.
Any guidance here would be appreciated.
I apologize in advance if I have completely misunderstood.
Thanks
Edited link to PM canonical form at author's req. - dvergin 2003-08-31
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Prototyping Subs: Good,Bad,Indifferent
by blokhead (Monsignor) on Aug 31, 2003 at 17:43 UTC | |
by knexus (Hermit) on Aug 31, 2003 at 20:11 UTC | |
|
Re: Prototyping Subs: Good,Bad,Indifferent
by liz (Monsignor) on Aug 31, 2003 at 17:19 UTC | |
|
Re: Prototyping Subs: Good,Bad,Indifferent
by jeffa (Bishop) on Aug 31, 2003 at 17:53 UTC | |
by adrianh (Chancellor) on Sep 01, 2003 at 08:42 UTC | |
|
Re: Prototyping Subs: Good,Bad,Indifferent
by lestrrat (Deacon) on Aug 31, 2003 at 17:48 UTC | |
|
Re: Prototyping Subs: Good,Bad,Indifferent
by tachyon (Chancellor) on Sep 01, 2003 at 01:05 UTC | |
|
Re: Prototyping Subs: Good,Bad,Indifferent
by Abigail-II (Bishop) on Aug 31, 2003 at 23:19 UTC | |
|
Re: Prototyping Subs: Good,Bad,Indifferent
by demerphq (Chancellor) on Sep 01, 2003 at 09:53 UTC |