I don't use the fields pragma or pseudo-hashes at all. I did play with them for a while but never used them in a serious project. My suggestion is not to use them, at least, not with Perl5.
I don't think this stuff has been... erm... hashed out in Perl6 yet. I'd wait to worry about doing things the Perl6 way until the Perl6 way for those things has been decided and implemented. Part of the Perl6 promise is that you can continue to write Perl5 now without programming yourself into a corner.
-sauoq "My two cents aren't worth a dime.";
In reply to Re: Hashes vs "use fields" for an Object?
by sauoq
in thread Hashes vs "use fields" for an Object?
by Wally Hartshorn
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |