Good info on ES6 Symbols for the mostly-uninformed (aka me).
I do wish they weren’t so separate from string object keys. That hurts one potential use case (Clojure-style :symbol-as-key usage, where almost every key is actually a symbol, not a string).
One minor gripe: the author seems to want operator overloading in JS. There are very very few cases I’d be in favor of this (equality and looping being the only two that come to mind). Operator overloading in C++ and operator defining in Haskell have both turned me off to having overloading in any other languages. It’s just too much of a pain to deal with.
Good info on ES6 Symbols for the mostly-uninformed (aka me).
I do wish they weren’t so separate from string object keys. That hurts one potential use case (Clojure-style :symbol-as-key usage, where almost every key is actually a symbol, not a string).
One minor gripe: the author seems to want operator overloading in JS. There are very very few cases I’d be in favor of this (equality and looping being the only two that come to mind). Operator overloading in C++ and operator defining in Haskell have both turned me off to having overloading in any other languages. It’s just too much of a pain to deal with.