Stories
Slash Boxes
Comments
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

Matts (1087)

Matts
  (email not shown publicly)

I work for MessageLabs [messagelabs.com] in Toronto, ON, Canada. I write spam filters, MTA software, high performance network software, string matching algorithms, and other cool stuff mostly in Perl and C.

Journal of Matts (1087)

Sunday October 22, 2006
08:47 PM

Dangerous thinking in the perl core...

[ #31386 ]

> It doesn't address that I'm trying to get information out of the diagnostic string.
> It also doesn't address the far more common case of Perl code producing error
> messages to emulate perl's own.

Since perl doesnt make any promises about error messages id say that
any code doing this is not exactly entitled to complain when things
break. The fact that any given version of perl documents a particular
error doesnt mean that we promise to provide that error for ever more
in that situation.

I think this is dangerous. For a long time perl didn't make a lot of guarantees -- until the documentation was updated to detail them. But perldiag is right there detailing the error messages, and people do parse for them, every single day, because they have no other choice right now.

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More | Login | Reply
Loading... please wait.
  • ... which is why Yves, Schwern, and myself have argued over the past few days over providing a better interface to warnings and error messages. Parsing natural language is fragile. There are better ways to make things unambiguous.

    • Yeah I got around to reading most of the rest of the thread now (spent the weekend in Hospital after my wife fell on her head while ice skating, so this weekend I've had very little time to catch up on p5p). I just thought that one early post was rather dangerous thinking.