Top "Control-flow" questions

Control flow (or flow of control) refers to the order in which statements are evaluated or executed.

Using a class dictionary to map to instance methods in Python

I have a long if-elif chain, like this: class MyClass: def my_func(self, item, value): if item == "this": self.…

python dictionary control-flow
What is Objective C execution order after UIApplicationMain in Main?

Could someone please explain how control of execution flows in an iOS application? I know that UIApplicationMain is called first …

objective-c sequence execution uiapplication control-flow
Programming style: should you return early if a guard condition is not satisfied?

One thing I've sometimes wondered is which is the better style out of the two shown below (if any)? Is …

language-agnostic control-flow program-flow
How to determine if an exception was raised once you're in the finally block?

Is it possible to tell if there was an exception once you're in the finally clause? Something like: try: funky …

python exception logging control-flow try-finally
Do Perl loop labels count as a GOTO?

Generally, it is good practice to avoid GOTOs. Keeping that in mind I've been having a debate with a coworker …

loops perl goto control-flow
networkx: Draw text on edges

for my thesis I need to draw some probabilistic control flow graphs. i.e. control flow graphs with probabilities depicted …

python networkx graph-theory directed-graph control-flow
Firebird CASE statement inside stored procedure

I was trying to use the case statement inside a stored procedure but I got "Token unknown" on it. case …

sql stored-procedures case firebird control-flow
How do I break out of a loop in Haskell?

The current version of the Pipes tutorial, uses the following two functions in one of the example: stdout :: () -> …

haskell control-flow