Re: Prototyping, do or don't?

2004-01-13 Thread drieux
On Jan 13, 2004, at 10:33 AM, Rob Dixon wrote: [..] Like I said, read what others have to say and adopt your own policy, but be consistent. Rob My only complaint is that the consistency position should be consistent within the context - either in an archeological sense - namely that if one finds co

Anti-Prototyping - Re: RFC: Prototyping, do or don't?

2004-01-13 Thread drieux
On Jan 13, 2004, at 6:59 AM, Dan Anderson wrote: [..] 1. Prototyping can lead to inlined functions which increases the speed of commonly used functions. Prototype when you can. 2. As soon as somebody uses your function in a way it wasn't supposed to be used, your program can explode. Never p

Re: Prototyping, do or don't?

2004-01-13 Thread Rob Dixon
Dan Anderson wrote: > > I am somewhat confused as to when to prototype a subroutine. Under the > tips section Programming Perl makes the following points: > > 1. Prototyping can lead to inlined functions which increases the speed > of commonly used functions. Prototype when you can. > > 2. As s

RFC: Prototyping, do or don't?

2004-01-13 Thread Dan Anderson
I am somewhat confused as to when to prototype a subroutine. Under the tips section Programming Perl makes the following points: 1. Prototyping can lead to inlined functions which increases the speed of commonly used functions. Prototype when you can. 2. As soon as somebody use