I wish we saw more people hacking wildly on JavaScript proxies. Subtly quietly doing multiple-dispatch without most folks being much the wiser is so imminently within possibility in JS since 2016[1]. There's some really nice uses (Svelte) but I think in general our ambition to hack the JS runtime with proxies, to build cool meta-object-protocols, has been way way way way undermatched versus the potential about here.
This sounds enticing! I use multiple dispatch in JS but I wrote my own library for it. Could you give an example of how one would use proxies to do multiple dispatch?
emorning3 · 2d ago
I'm late to this party but I would love to hear what folks use to do multiple-dispatch in other languages.
[1] https://caniuse.com/?search=Proxy