Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change

Re^5: Moose: return null object

by stvn (Monsignor)
on Apr 19, 2011 at 12:18 UTC ( #900095=note: print w/ replies, xml ) Need Help??

in reply to Re^4: Moose: return null object
in thread Moose: return null object

There seems to be no consensus on stack traces. Personally I find them very useful, you obviously differ in that opinion but still do see some usefulness, while others think they are simply evil incarnate.

To be honest, I wanted originally to use exception objects, but so many people/tools/programs expect die to throw a string and so many existing exception-object modules jumped through so many hoops it just turned me off from the idea. That said, these days I use Throwable and love it.

If you use one of the standard exception mechanisms, like for example Carp, judicious use of @CARP_NOT can slim down the backtrace tree easily

Moose does use Carp actually.

I will the first to admit (and I suspect many of the other core devs would agree) that Moose could use some better errors. There are few modules out there that couldn't use some help with errors, it is all too common to leave them till the end. Any help you would like to provide, I am sure would be greatly appreciated.


Comment on Re^5: Moose: return null object
Replies are listed 'Best First'.
Re^6: Moose: return null object
by Corion (Pope) on Apr 19, 2011 at 12:35 UTC

    I'm not actively using Moose except for one toy project. It's thus highly unlikely that I'll try to undertake the augeian task of modifying the layers upon layers of abstraction just to try to make the world better for people who won't appreciate my work.

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (4)
As of 2015-11-28 01:05 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (736 votes), past polls