Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
harg
on April 12, 2017
|
parent
|
context
|
favorite
| on:
TypeScript at Slack
What about enums?
https://www.typescriptlang.org/docs/handbook/enums.html
johnfn
on April 12, 2017
|
next
[–]
Alright, I'll give you enums. I don't actually use enums because they have been superseded by string union types, which are generally better. (And are just types)
fknop
on April 12, 2017
|
prev
[–]
Enums are really nothing else than a map string/integer.
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: