Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on The Logical Disaster of Null. Parent comment
sum = 0 for entry in entries: case (val): null: pass number n: sum += n endcase
The fun part is that the typesystem enforces that you check all possible cases -- or only lets you explicitly un wrap potentially null values.
So it's not like a C programmer checking if (x == NULL) manually.
There are no comments on this comment yet.
The fun part is that the typesystem enforces that you check all possible cases -- or only lets you explicitly un wrap potentially null values.
So it's not like a C programmer checking if (x == NULL) manually.