in reply to Re^8: Is it possible to create a sub exclusive to a sub?
in thread Is it possible to create a sub exclusive to a sub?

No, I didn't miss it. I get a clear and accurate error message indicating where the problem lies the first time the sub is called and that is enough.

If I mis-type a method name, it is not detected until runtime.

If I invoke a sub through a coderef, it isn't detected until runtime.

Why should I be concerned about this particular warning -v- stricture?


Examine what is said, not who speaks.
"Efficiency is intelligent laziness." -David Dunham
"Think for yourself!" - Abigail
"Memory, processor, disk in that order on the hardware side. Algorithm, algorithm, algorithm on the code side." - tachyon
  • Comment on Re^9: Is it possible to create a sub exclusive to a sub?

Replies are listed 'Best First'.
Re^10: Is it possible to create a sub exclusive to a sub?
by Aristotle (Chancellor) on Sep 19, 2004 at 11:50 UTC

    That argument hinges on whether you believe that it would be undesirable to have compile-time checking for methods. If you agree that it would be desirable (I certainly would find it so), then the argument you are making is backwards. By that logic, you would choose to not have your method calls compile-time checked even if the option existed, because after all, coderefs can't be checked either, so who cares, right?

    Makeshifts last the longest.