in reply to Re^3: Continuations in Perl - Returning to an arbitrary level up the call stack (exception handling)
in thread Continuations in Perl - Returning to an arbitrary level up the call stack

> You are reinventing exception handling.

probably ...

...most likely

... but I never liked fiddling with die to throw.

> While a daily routine for a Python programmer most Perl hackers won't understand it.

Single popes don't represent our whole monastery!

> Don't bother preaching, switch to Python! :-D

It's far easier to reimplement exception handling in Perl than getting along with crippled lamdas in Python.

The problem with Python are not the features but the restrictions!

Cheers Rolf

( addicted to the Perl Programming Language)

update

Found good discussions of the matter on SO whats-broken-about-exceptions-in-perl and in the appendix to Try::Tiny.

Try::Tiny looks reasonable to me! =)

  • Comment on Re^4: Continuations in Perl - Returning to an arbitrary level up the call stack (exception handling)
  • Select or Download Code

Replies are listed 'Best First'.
Re^5: Continuations in Perl - Returning to an arbitrary level up the call stack (exception handling)
by BrowserUk (Patriarch) on May 20, 2013 at 19:17 UTC
    Single popes don't represent our whole monastery!

    On the contrary. It is exactly because that pope recognised that what the OP was asking for was the reinvention of the standard exception mechanism; that I said my piece and then stayed away from this thread.

    The fact that you didn't recognise it as such and tried to justify in terms of a general flow control mechanism; and have subsequently spent an entire thread trying to justify that justifiction with ever more convoluted, crude and amateurish reimplementations of the standard exception mechanism has been most amusing.

    Thanks for the entertainment.


    With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
    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.