V2EX  ›  英汉词典

Non-null

释义 Definition

non-null非空的;不为 null 的。常用于编程与数据库语境,表示某个值、引用、字段或参数必须有实际内容,不能是“空值/无值(null)”。(在不同语言/系统中,“null”的具体含义可能略有差异。)

发音 Pronunciation

/ˌnɑnˈnʌl/

例句 Examples

Please make sure the password field is non-null.
请确保密码字段为非空。

The API rejects any request where the userId is non-null but invalid.
该 API 会拒绝 userId 虽然非空但无效的任何请求。

词源 Etymology

由前缀 non-(表示“非、不”)+ null(“空值、无效值”)构成。null 源自拉丁语 nullus,意为“没有的、无”。在计算机领域中,null 常指“缺失的值/空引用”,因此 non-null 就表示“不是空值”。

相关词 Related Words

文学与作品 Literary Works

  • Effective Java(Joshua Bloch):在讨论参数校验、避免空引用等实践时常出现 non-null 的表述。
  • Java Language Specification(《Java 语言规范》):在规范化描述引用与类型系统相关规则时会使用 non-null/“not null” 等概念性表达。
  • Kotlin in Action:讨论 Kotlin 的“空安全(null-safety)”与类型可空性时频繁涉及 non-null(不可空类型)的概念。
关于   ·   帮助文档   ·   自助推广系统   ·   博客   ·   API   ·   FAQ   ·   Solana   ·   1085 人在线   最高记录 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 11ms · UTC 17:04 · PVG 01:04 · LAX 09:04 · JFK 12:04
♥ Do have faith in what you're doing.