Subject: | predicate documentation not aligned with implementation |
Class::MOP documentation says:
This is a basic test to see if the value of the attribute
is not undef. It will return true (1) if the attribute's
value is defined, and false (0) otherwise.
Talking to nothingmuch in IRC this ended up to be wrong, and should read
something like:
This is a basic test to see if any value has been set for
the attribute. It will return true (1) if the attribute
has been set to any value (even undef), and false (0)
otherwise.
Maybe it could also be pointed out that this behaviour changed since...
I don't know which version of Class::MOP. And also provide those useful
insight about clearer that nothingmuch kindly explained to me in IRC.
Regards,
Flavio.