TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Null is not false, part one (2012)

9 点作者 wofo超过 1 年前

5 条评论

dataflow大约 1 年前
&gt; “not null” is of course also null.<p>I love Eric Lipper, but he&#x27;s just wrong here. This isn&#x27;t SQL. He&#x27;s treating null to mean &quot;unknown&quot;, whereas it really means &quot;nothing&quot; (aka &quot;absent&quot; aka &quot;missing value&quot;). The opposite of an absent value is a present value (but an unknown one), which has no equivalent type in C#. (Or I guess you could say the opposite of &quot;no value&quot; is &quot;every value&quot;.) Given those aren&#x27;t options, the closest choice we have available is: true.<p>If you insist on treating null as &quot;unknown&quot; then you just destroy everything you know about the language. e.g., (null == x) and (null != x) would both have to always evaluate to null. Which is (thankfully) not how C# works.
评论 #39379488 未加载
评论 #39379628 未加载
Daub大约 1 年前
Not sure if this is relevant...<p>For me, as a digital artist, the difference between null and zero often comes up. In the digital colour domain black = zero. However, for a designer&#x2F;artist black is as active as white or any of the hues. In most digital colour spaces there is nothing that corresponds to null i.e. &#x27;nothingness&#x27;, i.e. transparency. For this, pre-multiplied alpha must be employed.<p>This is not new thinking. Goethe often spoke against the Newtonian understanding of black as an active presence (i.e. paint squeezed from a tube) rather than an absence of light.
jjgreen超过 1 年前
Related: <a href="https:&#x2F;&#x2F;thedailywtf.com&#x2F;articles&#x2F;what_is_truth_0x3f_" rel="nofollow">https:&#x2F;&#x2F;thedailywtf.com&#x2F;articles&#x2F;what_is_truth_0x3f_</a>
评论 #39379540 未加载
irrational大约 1 年前
I’m still astonished by Oracle where NULL and empty string are equivalent.
评论 #39379674 未加载
adirelle大约 1 年前
Well, maybe null should not exist in the first place.