How should operator overloading work?

罗勇刚(Yonggang Luo) luoyonggang at gmail.com
Tue Dec 29 19:34:10 UTC 2015


Does operator overloading works means BigInt and uint64_t & int64_t would
works in Javascript?

On Wed, Dec 30, 2015 at 3:32 AM, Coroutines <coroutines at gmail.com> wrote:

> On Tue, Dec 29, 2015 at 11:15 AM, Andrea Giammarchi
> <andrea.giammarchi at gmail.com> 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.
> _______________________________________________
> es-discuss mailing list
> es-discuss at mozilla.org
> https://mail.mozilla.org/listinfo/es-discuss
>



-- 
         此致
礼
罗勇刚
Yours
    sincerely,
Yonggang Luo
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20151230/52b5ce7a/attachment.html>


More information about the es-discuss mailing list