3 ms·
> as the language is working against you Right, but this is one of those situations where a reasonable person could conclude "The language is not working to he
by shadowgovt 3y ago
> as the language is working against you
Right, but this is one of those situations where a reasonable person could conclude "The language is not working to help me solve the problem I'm trying to solve." Sometimes you don't want JavaScript sloppiness and you also don't want TypeScript structural-type "sloppiness," desiring instead nominal types.
This is a clever way to use the existing infrastructure to get nominal types with no additional runtime overhead.