Is goto ok for breaking out of nested loops?

后端 未结 10 1916
忘掉有多难
忘掉有多难 2021-01-18 04:33

JavaScript supports a goto like syntax for breaking out of nested loops. It\'s not a great idea in general, but it\'s considered acceptable practice. C# does not directly

10条回答
  •  孤独总比滥情好
    2021-01-18 05:03

    I believe the 'goto' is acceptable in this situation. C# does not support any nifty ways to break out of nested loops unfortunately.

提交回复
热议问题