Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re^3: Is Devel::Declare really so much less evil than source filters? (magic)

by stvn (Monsignor)
on Apr 07, 2010 at 15:52 UTC ( [id://833331]=note: print w/replies, xml ) Need Help??


in reply to Re^2: Is Devel::Declare really so much less evil than source filters? (magic)
in thread Is Devel::Declare really so much less evil than source filters?

Let me start out by saying that I personally do not use Devel::Declare or any of the modules which use it (MooseX::Declare, TryCatch, etc). My reasons for not using it are pretty much the same as your reasons. To be specific, I think that MooseX::Declare pukes up too many internal details when it errors and this makes for very tricky debugging and fixing that seems to be a non-trivial task (I say this only because no one seems to have fixed it yet or even come close).

This too is exactly why MooseX::Declare remains a MooseX:: module and is in no way an "official" part of Moose. Not until I am sufficiently convinced of the stability of Devel::Declare and the error messages of MooseX::Declare greatly improve will it even be considered.

In short, I totally agree with you (horror!), magic should be used sparingly and is never a foundation upon which you should build.

But, all that said, the Devel::Declare team is trying to reduce the magic-ness by working with the p5p folks. What will come of this? I have no idea, we will have to wait and see.

-stvn
  • Comment on Re^3: Is Devel::Declare really so much less evil than source filters? (magic)

Replies are listed 'Best First'.
Re^4: Is Devel::Declare really so much less evil than source filters? (magic)
by zby (Vicar) on Feb 14, 2011 at 16:05 UTC
    pukes up too many internal details when it errors and this makes for very tricky debugging and fixing that seems to be a non-trivial task
    sometimes I still have this feeling about Moose.
      sometimes I still have this feeling about Moose.

      Yeah, I agree, meta-layer errors can be a real pain to debug sometimes, however this being regularly improved upon. Unfortunately though in some cases it is really difficult to divine the user intent from the actual error being thrown, especially since we are not compiling the code and analyzing context, but only faux-keywords being called as subroutines.

      -stvn
Re^4: Is Devel::Declare really so much less evil than source filters? (magic)
by Anonymous Monk on May 12, 2013 at 01:04 UTC
    Hello, three years have passed. What happened between D::D and the p5p? How did D::D evolve?

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others goofing around in the Monastery: (9)
As of 2024-04-19 09:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found