Bug#584536: ITP: libmoosex-setonce-perl -- write-once, read-many attributes for Moose
Package: wnpp
Severity: wishlist
Owner: Ansgar Burchardt <ansgar@43-1.org>
* Package name : libmoosex-setonce-perl
Version : 0.100471
Upstream Author : Ricardo SIGNES <rjbs@cpan.org>
* URL : http://search.cpan.org/dist/MooseX-SetOnce/
* License : Artistic or GPL-1+ (like perl)
Programming Lang: Perl
Description : write-once, read-many attributes for Moose
The SetOnce attribute lets your class have attributes that are not lazy and
not set, but that cannot be altered once set.
.
The logic is very simple: if you try to alter the value of an attribute with
the SetOnce trait, either by accessor or writer, and the attribute has a
value, it will throw an exception.
.
If the attribute has a clearer, you may clear the attribute and set it again.
This module is required by a new upstream release of libdist-zilla-perl.
Reply to: