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

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