6 ms·
The biggest impediment in JS I think to DSL creation is how little power JS has in operator overloading. There are some interesting things people have done wit
by WorldMaker 9y ago
The biggest impediment in JS I think to DSL creation is how little power JS has in operator overloading.
There are some interesting things people have done with fake operator overloading: http://2ality.com/2011/12/fake-operator-overloading.html http://2ality.com/2011/12/fake-operator-overloading.html
I've not seen a JS DSL attempt that wasn't merely a "toy", but there's probably more room to explore ideas than people give JS credit for. You could also argue that there are plenty of DSLs out there as things like Babel plugins.