Perl
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
Go Back   Web Development Archives Mailing Lists Perl

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Web Development Archives Sponsor:
  #1  
Old July 6th, 2008, 06:20 AM
Rafael Garcia-Suarez
Guest
Dev Archives Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
Dual-life and autodie (Pumpking input appreciated)

2008/7/5 Paul Fenwick said:
Abigail wrote:
>
>4) I haven't looked how autodie is implemented, so I don't even know
>whether
>it would fit my own criteria for inclusion in the alternate reality
>where
>I am the perl release dictator.
>

Neither Fatal nor autodie are tightly coupled to the internals of Perl; the
only real dependency is on the behaviour of %^H in 5.8 and 5.10. Using the
Abigail test, there's no reason for either of them to be in the core.
>

Having said that, Fatal already is in the core, so people are going to
expect it to remain there. Autodie is implemented on top of Fatal (they
share the same guts) and is tightly bound to Fatal.
>

My argument for putting autodie into the core is that in almost every
circumstance where people are currently using Fatal, autodie would be a
better choice. There's no action from a distance (it's lexically scoped,
not packaged scoped), there are better error messages (Fatal's errors are
*way* too ugly), it throws real exception objects (which stringify to nice
messages), and it's easy to subclass to your needs (if you want to do
localisation, or use a different exception system, or just add your own
error handlers).

I tend to agree with those reasons (and I don't like the current coreish
Fatal.) So yes, I'll apply a patch to add autodie to the core. Please send one.
(Sorry for responding that late, by the way.)

Reply With Quote
Reply

Viewing: Web Development Archives Mailing Lists Perl > Dual-life and autodie (Pumpking input appreciated)


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway
Stay green...Green IT