Re:California
by Zak on Saturday October 06, 2007 @10:10PM
(#64319)
>If a series of statements might get interrupted halfway through, there needs to be an indication of this or else it's very easy to create bugs.
You can mitigate this by relying more on return values and less on side-effects. If the higher-level code depends on some side-effect, why not place the side-effect in the higher-level code after the function returns?
You can mitigate this by relying more on return values and less on side-effects. If the higher-level code depends on some side-effect, why not place the side-effect in the higher-level code after the function returns?