Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
|
anustart666's comments
login
anustart666
on July 3, 2015
|
parent
|
context
[–]
| on:
Airbnb JavaScript Style Guide
Did you even read it? They don't use the meme 'symbols' but clearly mention 'dynamic property names'.
https://github.com/airbnb/javascript#3.4
financequoll
on July 3, 2015
|
parent
[–]
Dynamic property names are quite different to Symbols in ECMAScript 6.
anustart666
on July 3, 2015
|
root
|
parent
[–]
Use a global const for keygen, 'symbol' is most likely just a syntactic sugar for global const...
financequoll
on July 3, 2015
|
root
|
parent
[–]
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.
Consider applying for YC's Summer 2026 batch! Applications are open till May 4
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
https://github.com/airbnb/javascript#3.4