News for hackers. Stuff that matters.
Re:TypeScript: Branded Types by leecommamichael on Wednesday April 24, 2024 @02:15PM (#40147771)
The Odin language has a ‘distinct’ type-qualifier which accomplishes this tersely. It’s a big part of the type system, and C’s type-system for that matter.

There are no comments on this comment yet.