Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
esprehn
on Dec 15, 2022
|
parent
|
context
|
favorite
| on:
Rewriting TypeScript in Rust?
Allowing literal strings and type aliases of unions of strings to represent enums doesn't seem unreasonable. It's the same concept as many other languages with some extra quotes, ex.
https://ocaml.org/docs/data-types#a-simple-custom-type
Consider applying for YC's Spring batch! Applications are open till Feb 11.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: