codalien / operator-overloading-js

Simple Operator overloading library for JS.
160 stars 26 forks source link

Using Symbol instead of a named method for the operator overloading #20

Open Davilink opened 6 years ago

Davilink commented 6 years ago

Do you think it would be better to use Symbol instead of pure named method ? Method is suppose to be unique, so i guess it could be a good idea to use them, it like the iterator Symbol : https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Symbol/iterator

kushal-likhi commented 5 years ago

Yes, looks like a good idea. Want to try that? i can work on it over the weekend.