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.
In reply to Re: Re: RFC - module idea - Devel::StrictObjectHash
by stvn
in thread RFC - module idea - Devel::StrictObjectHash
by stvn
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |