Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
moomin
on Sept 12, 2020
|
parent
|
context
|
favorite
| on:
From Rust to TypeScript
The joke is, OO language have sum types, albeit incredibly broken ones, because any set of classes that inherits from the same base has the base as a sum type.
You can surface this by implementing the visitor pattern.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
You can surface this by implementing the visitor pattern.