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

Use a global const for keygen, 'symbol' is most likely just a syntactic sugar for global const...


Well a Symbol is guaranteed to be unique (unless you use the symbol registry) and can't be converted to a string - things that you can't say about a global const that is a string.




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

Search: