Hacker News new | ask | show | jobs
by maxdeviant 2275 days ago
Yes. This is exactly what we do at work.

It makes sure that you never pass a `LocationId` where a `UserId` is expected; the type system literally will not allow it.