News for hackers. Stuff that matters.
Re:TypeScript: Branded Types by lmm on Wednesday April 24, 2024 @09:29PM (#40152226)
> Isn't that what you want to signify? It's the intent

No it isn't. If your ids do have a field, then marking them as never having a field is unwise. Never means that code that reads that field is never wrong (because you can never reach the point of reading it), whereas you want the opposite, code that reads that field is always wrong.

There are no comments on this comment yet.