I think you'll find most people here don't like type checking, so this may not be the best place to ask this question.
Personally, I can see a use for checking when you're passing around objects, but not primitives like integers and strings. Perl's DWIM is good enough that it'll usually know how to convert one primitive into another transparently, so I don't consider them a problem. However, when you pass in an object, you want to make sure that the methods you call are going to exist. No ammount of DWIM will save you from calling a method that isn't there.
----
I wanted to explore how Perl's closures can be manipulated, and ended up creating an object system by accident.
-- Schemer
: () { :|:& };:
Note: All code is untested, unless otherwise stated
In reply to Re: Static checking
by hardburn
in thread Static checking
by hanenkamp
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |