Skip Menu |

This queue is for tickets about the Moose CPAN distribution.

Report information
The Basics
Id: 77591
Status: rejected
Priority: 0/
Queue: Moose

People
Owner: Nobody in particular
Requestors: perl [...] toby.ink
Cc:
AdminCc:

Bug Information
Severity: Unimportant
Broken in: 2.0602
Fixed in: (no value)



Subject: Return value of Class::MOP::Class::add_attribute (and Moose::Meta::Attribute equivalent) is undocumented
It currently returns the attribute just added, but this behaviour is undocumented. I'd like to be able to rely on this behaviour, but without documentation, I'm not sure if it's going to suddenly change without warning in a future release.
We intentionally don't document the return value of any of our mutators. You should not rely on these return values.