c# - Breaking out of a nested loop - Stack Overflow

c# - Breaking out of a nested loop - Stack Overflow

瀏覽:802
日期:2025-06-12
Goto itself isn't ugly. What is ugly is abusing goto which results in spaghetti code. Using goto to break out of nested loop is perfectyly ok. Besides, note that all break, continue and return, from structural programming point of view, are hardly better ...看更多