in reply to Re: How do I prototype a function with a varying number of arguments?
in thread How do I prototype a function with a varying number of arguments?
I myself am doing the same exact thing as you, basically making my subroutines "generic", (at least any subroutine I write that could ever be used again) more for my own code library and the benefit of the practice than a module or anything, but I haven't really taken the approach of using prototypes. At the mention of making my subroutines generic, my guru suggested using them, but upon my own research, I just didn't see the benefit, seems a bit redundant to me, perhaps I'm missing their functionality/purpose?If there's any correlation between prototypes and genericness, it's a negative one. I'd say that prototypes make functions less generic.
In general, I don't use prototypes, unless they give me a benefit at compile time. Prototypes I may consider using:
|
|---|