Coat 0.1_0.6
A new version of Coat has just been uploaded to the CPAN, this one provides support for two new attribute options taken from Moose:
requiredwhich tells the attribute must not be set to an undefined valuetriggerwhich lets you define a code reference that will be called whenever the attribute is set
I’ve also rewrote the main documentation, taking bits from Moose’s and reorganizing the whole POD so it looks better. I’ve also removed the dependency to Scalar::Util::looks_like_number (which was used in 0.1_0.5 by Coat::Types) because it appears that function was not shipped with Perl 5.8.0. As my motto for Coat is the more compatible, the better, I decided not to use it anymore.
There are 129 tests now in the source tree and I think Coat is close to something stable. I welcome test reports and feedback, I hope I will be able to release a non-developer release soon.
While I’m at speaking about Coat, let’s say for the record that I’m also working on a persistence layer for Coat-built objects. The challenge here is to provide an ORM module that behaves quite the same as the one provided with Ruby on Rails : ActiveRecord. I’ve made a prototype that works pretty well, even if not complete. Maybe more about this later.
Stay tuned (and don’t forget: use your coat when it’s rainy outside!).