News for hackers. Stuff that matters.
Re:Twenty five thousand dollars of funny money by tshaddox on Saturday December 03, 2022 @12:05PM (#33844972)
The closest way to get nominal typing in TypeScript is with type branding. I haven’t actually used this small library, but it illustrates the idea: https://github.com/kourge/ts-brand
Re:Twenty five thousand dollars of funny money by Waterluvian on Saturday December 03, 2022 @12:05PM (#33844982)
“nominal typing” thanks for the link and terminology!