Slash Boxes
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
More | Login | Reply
Loading... please wait.
  • Hi Mark

    I can understand the theoretical arguments for all these asserts, but I can't actually envision writing such code in the real world.

    And I don't think it's good enough to say people ought to - the simple fact is that, in general, they won't.

    So, what are your thought on this :-)?

    • The ability to perform static analysis is what intrigued me about Code Contracts for .NET. Even in VB.NET (more strictly data-typed than Perl), I end up writing assertation-like code anyway for argument and return-value validation. It would be nice to leverage that validation code for some additional static analysis, without requiring strong data-typing everywhere all of the time. If I was writing server code, I would probably also use some kind of runtime assertation mechanism, just because I like to have