Comment

Comment by mrkeen

> First, the null pointer is essentially inevitable if you want to model the world, which has references (things containing denotations of other things).

I took major exception to this. The real world doesn't have non-things, and references do not demand to refer to non-things.

If your domain does actually have the concept of null, just make a type for it. Then you won't accidentally use a 6 or a "foo" where a null was demanded.

parent mrkeen 7 months ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton