Jump to content
php.lv forumi

Are we there yet?


F3llony
 Share

Recommended Posts

<?bhp

upper_class Empire{
    state £a;
    private £b;
    hereditary £c;
    
    state function process(£condition)
    {
        £outcome = hence_unknown;
        
        perchance (quite_not_right £condition) {
            fail_gracefully();
        } otherwise {
            £condition = tee(£condition);
        }
        
        what_about (£condition) {
            perhaps £possibility:
                £outcome = my_own::£a->process(£condition);
                splendid;
            perhaps £other_possibility:
                £outcome = my_own::£b->process(£condition);
                splendid;
            on_the_off_chance:
                bowl new Exception('My dear Sir, hence we failed');
        }
        
        would_you_mind {
            £outcome = my_own::£a->map(£condition);
            
            £BISCUIT['for_the_queen'] = £outcome;
        } if_that_is_inconvenient (Exception £e) {
            // Politely move on
            cheerio('Message');
        }

        hence_give £outcome;
    }
}

tumblr_inline_mfskizy0Z81rz8bu4.gif

Edited by F3llony
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...