Re: Defining attributes

2010-06-22 Thread Evan Carroll
but the following one doesn't: has $_ = (is = 'rw', isa = 'Str') for 'a' .. 'zzz'; Something about this I find especially amusing, but to drive the point home with today's poorly worded Double Jeopardy question? What does the following do? package Class; use Moose; package main; Class-new-has(

Re: Defining attributes

2010-06-22 Thread Karen Etheridge
On Tue, Jun 22, 2010 at 10:48:21AM -0500, Evan Carroll wrote: And the forbidden Triple Jeopardy question? What ways can you have prevented this with a much more simplistic failure? I believe it has already been said that there will be a clearer error message added for when one attempts to use a

Re: Defining attributes

2010-06-22 Thread Evan Carroll
On Tue, Jun 22, 2010 at 1:15 PM, Karen Etheridge p...@froods.org wrote: On Tue, Jun 22, 2010 at 10:48:21AM -0500, Evan Carroll wrote: And the forbidden Triple Jeopardy question? What ways can you have prevented this with a much more simplistic failure? I believe it has already been said that