From: Matt S Trout Date: Tue, 12 Feb 2013 08:55:14 +0000 (+0000) Subject: clarify is => 'lazy' docs to explain that the rw+lazy footgun still works X-Git-Tag: v1.001000~32 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=876b1e94868eb7b8bf61143cba29b91733cf2f44;p=gitmo%2FMoo.git clarify is => 'lazy' docs to explain that the rw+lazy footgun still works --- diff --git a/Changes b/Changes index f0b6215..09d39ba 100644 --- a/Changes +++ b/Changes @@ -1,3 +1,5 @@ + - expand is => 'lazy' doc to make it clear that you can make rw lazy + attributes if you really want to - handles => "RoleName" tries to load the module 1.000008 - 2013-02-06 diff --git a/lib/Moo.pm b/lib/Moo.pm index ec39ff2..37d0bf8 100644 --- a/lib/Moo.pm +++ b/lib/Moo.pm @@ -430,7 +430,9 @@ C generates a reader like C, but also sets C to 1 and C to C<_build_${attribute_name}> to allow on-demand generated attributes. This feature was my attempt to fix my incompetence when originally designing C, and is also implemented by -L. +L. There is, however, nothing to stop you +using C and C yourself with C or C - it's just that +this isn't generally a good idea so we don't provide a shortcut for it. C generates a reader like C, but also sets C to C<_set_${attribute_name}> for attributes that are designed to be written