經安全檢測,此網站為安全網站,請放心前往原始網址!

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

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

stackoverflow.com

網址安全性掃描由 google 提供