Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
SergeAx
on April 25, 2024
|
parent
|
context
|
favorite
| on:
TypeScript: Branded Types
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))`
Consider applying for YC's Fall 2026 batch!
Applications
are open till July 27.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: