in reply to Re: (bbfu) (prototype misconception) Re(2): Declaring Subroutines (predeclare, catch errs at compiletime?)
in thread Declaring Subroutines
Well, ok. I suppose I should've said that, while prototypes will catch some errors at compile time, that is not what they were really intended for. Plus, they can (and will) introduce other, less obvious errors at run time. The article explains it much better than I could; if you have not already read it, I suggest you do.
Regardless, my point was that you should be sure that you understand what prototypes really do before using them and that some simple "error checking" is not a good reason to use them (even if you do understand them).
Prototypes can be useful in a few (very few) situations. Unfortunately, their use, especially for the wrong reasons, can also be dangerous.
bbfu
Seasons don't fear The Reaper.
Nor do the wind, the sun, and the rain.
We can be like they are.
|
|---|