in reply to RFC - module idea - Devel::StrictObjectHash
One solution is to use arrays instead of hashes, it's not as easy to do typos with them. Of course, with arrays you can easily get into an off-by-one error, as in many cases the $kth field of the created object is given by @_[$k+1] in the constructor.
I know of course that arrays are not quite sufficent in most cases.
|
|---|