Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re^5: Trying to make perl suck less again

by stvn (Monsignor)
on Dec 23, 2007 at 21:18 UTC ( [id://658810]=note: print w/replies, xml ) Need Help??


in reply to Re^4: Trying to make perl suck less again
in thread Trying to make perl suck less again

**SIGH** Evan, Evan, Evan, please get your facts straight.

1. isa => "foo|bar" (used to work), now requires isa => "foo | bar"

Actually, "foo|bar" never worked, Moose just assumed it was some odd class name. And for the record, it works fine now. Try this with the latest Moose (using the oose helper module of course).

perl -Moose=Foo -e 'has bar => (isa => "Str|Int"); print Foo->new(bar +=> 100)->dump; print Foo->new(bar => "Hello")->dump;' ;
I don't consider this breaking backwards compat, but fixing a bug.

-stvn

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://658810]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (4)
As of 2024-03-30 04:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found