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
Stories, comments, journals, and other submissions on use Perl; are Copyright 1998-2006, their respective owners.
Representation, not delegation or inheritance (Score:1)
In a perfect Perl 6 world you'd implement an ORM not as a inheritance or delegation, but by providing a different low-level representation, which manages storage to a db.
The object doesn't have to be aware that it's stored, you just have to provide a constructor that allows injecting of a different representation.
Sadly Rakudo doesn't implement representation polymorphism yet, SMOP might do it already
Reply to This