CSE 130 Lecture Notes - Lecture 14: Exception Handling, Donald Knuth, Computable Function
Document Summary
We don"t know where we will end up! Donald knuth: eliminate gotos in some cases, add gotos in other cases (i. e. in controlled form) Helps simplify code (can jump to labels for error checking , for example) A paradigm - has things like control flow statements. Includes things like control structures, procedures, blocks, etc. Makes code less gnarly (easier to write) Helps simplify certain areas where there can be potential faults. Control flow graphs ( cfg ) - graphs that describe control flow , where programs go, can lead to, and flow from. A: sequencing of instructions, selection (aka conditional branching), iteration (looping) Default: f (this case has no break; -- falls through to default) Chain blocks using previous constructs to program any computable function. Downside: programs = sim + blocks (super giant blobs) Procedural abstraction : way of organizing code in procedures (functions) Downside : have to actually implement them (complicates cfg)