How should operator overloading work?

Coroutines coroutines at
Tue Dec 29 19:32:49 UTC 2015

On Tue, Dec 29, 2015 at 11:15 AM, Andrea Giammarchi
<andrea.giammarchi at> wrote:
> I should probably read other threads too about this, but is `Symbol('+')` a
> typo and it should be a property like any other well known `Symbol` so that
> it's actually `Symbol['+']`, `Symbol['~']`, and others? AFAIK invoking
> Symbol passing a string should create a named Symbol, and not a special one.
> Thanks for any sort of clarification.
> Best Regards

Yeah, I messed up there, should be Symbol['+'] simillar to Symbol.iterator

In my example, I have Symbol('+') everywhere which would mistakenly
create several symbols with the same '+' description.

More information about the es-discuss mailing list