Yes I have actually. It is interesting, but not what I was looking for. Devel::StrictObjectHash is not really intended to be used directly. It only needs to be loaded and configured, after that it just keeps an eye on plain old hash-based OO code you have already written.

I wrote this more so that I can continue to code in the same way I have been, but have an extra layer of confidence that assures me that my code is doing what it should. Its along the same philisophical lines as "use strict". In the end you don't want it to do anything, because your code is correct.

The other reason I wrote this is that all the other solutions I looked into Tie::SecureHash as well as Tie::StrictHash and Devel::Carnivore, were not transparent. All of them required changes to your code to use them, and then changes again to un-use them. Tie has a pretty sizable performace penalty, its not something you want to do lightly. Devel::StrictObjectHash allows you to test your code with almost no alteration (just have to load the module and confiigure it, i can all be in one line), then just as quickly turn it off and not loose your performance.

-stvn

In reply to Re: Re: RFC - module idea - Devel::StrictObjectHash by stvn
in thread RFC - module idea - Devel::StrictObjectHash by stvn

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.