跳至主要內容
  • Hostloc 空間訪問刷分
  • 售賣場
  • 廣告位
  • 賣站?

4563博客

全新的繁體中文 WordPress 網站
  • 首頁
  • 某某值不能为空是 must not be null 地道一些还是 can not be null 地道一些?
未分類
21 7 月 2020

某某值不能为空是 must not be null 地道一些还是 can not be null 地道一些?

某某值不能为空是 must not be null 地道一些还是 can not be null 地道一些?

資深大佬 : Newyorkcity 33

一个比较纠结的问题。。

大佬有話說 (22)

  • 資深大佬 : nealight

    一般说 may not be null.

  • 資深大佬 : binux

    意思都不一样,我怎么知道你想表达哪个?

  • 主 資深大佬 : Newyorkcity

    @binux 具体说说?我就是想表达某个值不能为 null 啊

  • 主 資深大佬 : Newyorkcity

    @nealight may 的语气不是很弱吗。。。

  • 資深大佬 : binux

    @Newyorkcity #3 不能是不可能还是不能够?不过 1L 说得对

  • 資深大佬 : leavebody

    shall

  • 資深大佬 : jadehare

    java 里是 must 吧,不知道是不是这么理解的,can not 是不能为空,must not 是不应该为空,属性是可以为空的但不应该为空。

  • 資深大佬 : heiheidewo

    must not be null
    主谷歌一下这句话,基本都是

  • 資深大佬 : dlsflh

    Shall 语气最强。

  • 資深大佬 : raphael008

    xxx field is mandatory.

  • 資深大佬 : adadada

    @Newyorkcity 这里 may not 是一个习语,就是不可以的意思

  • 資深大佬 : heijiaotuan

    RFC 一般采用第一种

  • 資深大佬 : keybrade285

    I, field xxx, refuse to be null!

  • 資深大佬 : Leonard

    nonnull 关键字就行了

  • 資深大佬 : ryanjmliao

    难道不是 shall ?

  • 資深大佬 : AllenHua

    有语气的区别

    依稀记得我的初中 高中英语老师

    must not 是不可以

    cannot 是不能

    这里还是 用 不能 语气强烈 干脆一些

  • 資深大佬 : nekoneko

    NotNull 不能为空
    Nullable 可以为空

  • 資深大佬 : d0wnl0ad

    如果这个字段事给用户看的,两个短句都不是太好 *死*

    null 不是一个太大众的名词,must not be 和 can not be 只是语气强弱的差异。。。

  • 資深大佬 : lln133208

    should NOT be null?

  • 資深大佬 : adadada

    如果搞不清用哪个词,就照着 rfc2119 来;如果有人问为啥用这个词,就把 rfc 链接扔给他。

  • 資深大佬 : nealight

    @Newyorkcity may 是官方文书用语。跟 Maybe you are right, maybe not 里面意思不同。

  • 資深大佬 : vcode

    Fuck null

文章導覽

上一篇文章
下一篇文章

AD

其他操作

  • 登入
  • 訂閱網站內容的資訊提供
  • 訂閱留言的資訊提供
  • WordPress.org 台灣繁體中文

51la

4563博客

全新的繁體中文 WordPress 網站
返回頂端
本站採用 WordPress 建置 | 佈景主題採用 GretaThemes 所設計的 Memory
4563博客
  • Hostloc 空間訪問刷分
  • 售賣場
  • 廣告位
  • 賣站?
在這裡新增小工具