Comment

Comment by anytime5704

I think the other commenter’s point is you can use 2 fields to distinguish between the first field being specified as empty vs absent (or whatever terms you prefer).

E.g.

- type.specified => “”

- type.unspecified => empty

The same technique can be used to disambiguate between 0 and empty.

parent anytime5704 2 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton