in reply to Re^2: Continuations in Perl - Returning to an arbitrary level up the call stack
in thread Continuations in Perl - Returning to an arbitrary level up the call stack

You are reinventing exception handling.

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

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

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

Replies are listed 'Best First'.
Re^4: Continuations in Perl - Returning to an arbitrary level up the call stack (exception handling)
by Anonymous Monk on May 20, 2013 at 16:33 UTC

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

    Hackers not understand something "python programmers do routinely?"

    LOL!

Re^4: Continuations in Perl - Returning to an arbitrary level up the call stack (exception handling)
by LanX (Saint) on May 20, 2013 at 15:06 UTC
    > 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! =)

      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.