Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re^6: eval to replace die?

by chromatic (Archbishop)
on Oct 04, 2010 at 16:43 UTC ( #863376=note: print w/ replies, xml ) Need Help??


in reply to Re^5: eval to replace die?
in thread eval to replace die?

Should we scrap regexes all together?

How do you go from "Converting structured information to strings, then using regular expressions to attempt to extract structured information is fragile" to "Don't use regular expressions"?

Or just $@ =~ /^Uninitialised variable/ to match just the invariant part of the error.

Invariants often aren't. See also theory's comment about localizing Bricolage.

And you've never had to restructure your exceptions?

Of course I have. Code changes. Changing regular expressions used for control flow because data has changed is different.


Comment on Re^6: eval to replace die?
Download Code
Re^7: eval to replace die?
by BrowserUk (Pope) on Oct 04, 2010 at 18:06 UTC

    No. I reach there by extrapolation from your "It doesn't perform a regular expression match, for one."

    You say that, thereby implying that regular expressions are a bad thing.

    I just take your words to their logical conclusion. It's called proof by contradiction; or disproof by "Reductio ad absurdum".

    If regular expressions are so bad for exception handling; why would they be reliable for anything else?


    Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
    "Science is about questioning the status quo. Questioning authority".
    In the absence of evidence, opinion is indistinguishable from prejudice.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (4)
As of 2014-08-23 20:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (178 votes), past polls