Are there languages without “null”?

后端 未结 3 515
误落风尘
误落风尘 2021-02-06 23:55

There are many people who think that the concept of the special value null (as it is used in lanuages like C, Java, C#, Perl, Javascript, SQL etc.) is a bad idea. T

3条回答
  •  有刺的猬
    2021-02-07 00:50

    You already mention Haskell as an example of a language without "null". There are also the languages in the ML family like Standard ML, OCaml or F#. Many dynamically typed languages also do not feature null pointers, scheme would be a good example.

提交回复
热议问题