top | item 39214468

(no title)

dbattaglia | 2 years ago

In Scala it worked great using AnyVal wrappers around primitive types. It’s something I miss in typescript, where type aliases are more for documentation purposes on id types but don’t add much type safety. I think they trick is the type needs value semantics, which records should help with.

discuss

order

No comments yet.