Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

It's really hard to make the example complex enough for experts without completely losing most people. This is deliberately a simple example.

The string thing is the way enums tend to be done in modern JS APIs. It's not really a bottleneck but if it turned out to be, we'd go a different way.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: