Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
chpatrick
on Aug 18, 2023
|
parent
|
context
|
favorite
| on:
TypeScript is surprisingly ok for compilers
Type-refining if in TypeScript is good enough for pattern matching if you ask me.
graftak
on Aug 18, 2023
[–]
The TypeScript type system meta programming actually does pattern matching very well, it’s just the underlying JS runtimes that can’t, there is a proposal for it though;
https://github.com/tc39/proposal-pattern-matching
.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: