33
Fakhru
7y

Hey girl,
I want our relationship to be a poor recursion, so that it never terminates.

#devspickupline

Comments
  • 1
    <?php

    /**
    * Checks if $bf screwed up
    * @param BoyFriend $bf
    * @return bool
    */
    function checkIfMessedUp($bf) {
    return $bf->didSomethingStupid();
    }

    while (true) {
    if (checkIfMessedUp($bf);) {
    throw new Exception('No longer in love');
    }
    }
  • 0
    Didn't want to go any further, figured the idea got across
  • 4
    Error: stack overflow.
  • 3
    Try:
    PickUpGirlAtBar()
    Except RejectionError:
    GoHome()
    Except HasBoyfriendError:
    GoHome()
    Except AnxietyError:
    GoHome()
  • 1
    If the relationship never terminates, but the body does... Then... Well...
  • 1
    @nmunro That's sounds a bit Edgar Allan Poe-inspired.
  • 0
    @Grumpy I do take more than a little influence from Gothic horror...
  • 0
    Love seems at first a good idea, then the routine appears and you will have a headache to debug this fuckin' recursion...
Add Comment