I'm doing some networking stuff in one of my methods and I would like the method to return NO
and stop executing early if one of the internal calls returns an error, a bit like break for loops. Is this possible?
IMO it would produce cleaner code rather than using a BOOL flag and having "should I continue executing this code?" if statements all over the place; and then finally at the end of the method returning YES or NO based on the flag.
Any thoughts are much appreciated!