<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><div>On Apr 4, 2012, at 6:01 PM, Bill Moseley wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><span class="Apple-style-span" style="border-collapse: separate; font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><div>has id => ( lazy_build => 1, ... );</div><div>sub _build_id { return shift->name }</div></span></blockquote></div><br><div><br></div><div>Side note:  I've been hanging out on the #moose channel lately.  Apparently, lazy_build is out of fashion, because it also generates a predicate and clearer method for you, which you probably didn't want.  So now the recommended practice is... </div><div><br></div><div>has id => ( lazy => 1,  builder => '_build_id' );</div><div><br></div><div>I think lazy_build will be removed from the documentation in the next release of Moose.</div><div><br></div><div>-Jeff</div></body></html>