V2EX  ›  英汉词典

Infinite Loop

Definition / 释义

infinite loop:无限循环;指程序(或逻辑过程)反复执行同一段步骤而不会自然结束的情况,通常由终止条件缺失、条件永远为真、或状态无法改变导致。(在一般语境中也可指“无休止的循环往复”。)

Pronunciation / 发音

/ˈɪnfɪnɪt luːp/

Examples / 例句

The program got stuck in an infinite loop.
程序陷入了无限循环。

Because the exit condition is never met, the function keeps calling itself and creates an infinite loop that eventually crashes the system.
由于退出条件永远无法满足,这个函数不断自我调用,形成无限循环,最终导致系统崩溃。

Etymology / 词源

infinite 来自拉丁语 infinitus(“无边界的、无穷的”),由 *in-*(否定)+ finitus(“有界限的”)构成;loop 原指“圈、环、套索”,后引申为“循环往复的过程”。两者组合在计算机语境中指“不会终止的循环”。

Related Words / 相关词

Literary Works / 文学作品

  • The C Programming Language(Kernighan & Ritchie)——在讲解控制流与循环结构时常提及“无限循环”的典型写法与风险。
  • Structure and Interpretation of Computer Programs(Abelson & Sussman)——讨论递归与过程控制时会涉及不终止计算(包含无限循环/无限递归的概念)。
  • Clean Code(Robert C. Martin)——在代码质量与缺陷讨论中提到需要避免导致程序“卡住”的循环问题(包括无限循环)。
关于   ·   帮助文档   ·   自助推广系统   ·   博客   ·   API   ·   FAQ   ·   Solana   ·   2002 人在线   最高记录 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 14ms · UTC 12:33 · PVG 20:33 · LAX 04:33 · JFK 07:33
♥ Do have faith in what you're doing.