Why is it called nillable?

后端 未结 5 1204
忘了有多久
忘了有多久 2021-01-01 08:19

In an XML schema you can mark an element as nillable meaning it can take an explicit NULL value. See nillable and minOccurs XSD element attributes for a great e

5条回答
  •  醉话见心
    2021-01-01 08:43

    What I'm wondering is why nil was chosen, rather than the more common (in computer science) null

    This depends on which part of computer science you're coming from!

    If you look at programs written in functional languages, you'll see nil every where, and very seldom null. And as it happens, XML and all it's siblings such as XSLT are closely related to functional languages.

提交回复
热议问题