Instantiating a class with an undefined amount fails without a helpful message
Issue #6
new
Throw an exception just telling the amount was undefined.
Comments (2)
-
reporter -
reporter It looks like the constructor of Moose always requires a hashref or a list of key-value pairs as arguments after the instance argument.
- Log in to comment
The vague error goes away if we replace undefined with $EMPTY, but we don’t know if that is the way to go.