Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion Exiting a method early from another method
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Randy Schmidt  
View profile  
 More options Oct 20 2012, 5:04 pm
From: Randy Schmidt <m...@r38y.com>
Date: Sat, 20 Oct 2012 17:04:31 -0400
Local: Sat, Oct 20 2012 5:04 pm
Subject: Exiting a method early from another method
Hi there,

I'm working through some refactoring and part of that is pulling logic
out into small methods. One of these areas is used to exit early from
the method and I would like to pull it out into its own method as
well, however, then I can't use it to exit early.

Any ideas how I can do this?

Here is the code with a lot of the cruft removed:

https://gist.github.com/3924791

Thank you!
--
Randy Schmidt


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.