Re:TypeScript: Branded Types
by SergeAx on Thursday April 25, 2024 @11:41AM
(#40158873)
Seems like patching earlier language architecture mistake. If you create custom types, you should not use duck typing on them. You should use typecasting, so the programmer would write something like `result = processEntityA(A(B))`
[ Parent
| on HN ]
There are no comments on this comment yet.