Search for a label than a trailing right brace

  • Thread starter Thread starter rcgldr
  • Start date Start date
  • Tags Tags
    Search
Click For Summary
The discussion centers on the debate over the use of "goto" statements in programming, particularly in C. Some argue that searching for a label is easier than finding a trailing right brace, while others assert that proper indentation and brace notation enhance code readability. Critics of "goto" emphasize its potential to create unstructured and hard-to-follow code, advocating for loops and conditional structures instead. The conversation also touches on the use of function pointers versus state variables for managing control flow, with varying opinions on readability and maintainability. Ultimately, the thread highlights differing philosophies on code structure and the appropriateness of "goto" in programming.
  • #91


D H said:
That an N statement perniciously written pile of spaghetti might expand to N! statements of neatly written structured program should not be too surprising. This rewriting of the code is essentially the general Boolean satisfiability problem, which is of course an NP-complete problem.

You are not making any sense to me. How about you make things a bit more formal?
 

Similar threads

  • · Replies 3 ·
Replies
3
Views
2K
Replies
81
Views
7K
  • · Replies 26 ·
Replies
26
Views
5K
Replies
5
Views
7K
Replies
19
Views
2K
  • · Replies 75 ·
3
Replies
75
Views
6K
  • Sticky
  • · Replies 13 ·
Replies
13
Views
7K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 16 ·
Replies
16
Views
4K