codalien / operator-overloading-js

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

Alternative (escaping?) operator suggestion #15

Open ghost opened 8 years ago

ghost commented 8 years ago

Hello. I suggest alternative operator, that does not used in overloading.

c = a $[+] b; //Not overloadable operator, but this is plus

Also, how to overload assign operator?

kushal-likhi commented 5 years ago

Ah! ok so you mean when we need to do actual + in case its overloaded. I think we need a lexically correct JS syntax to mark it. Because we do not want base AST parser to fail.