Why use infinite loops?

前端 未结 14 1997
深忆病人
深忆病人 2021-02-08 13:34

Another poster asked about preferred syntax for infinite loops.

A follow-up question: Why do you use infinite loops in your code? I typically see a construct like

14条回答
  •  悲&欢浪女
    2021-02-08 14:01

    I use an infinite loop for the body of my embedded control code, since it is designed to run forever once it is started.

提交回复
热议问题