83 ms·
new proxy(()=>{}, {get() {}})
by basil-rash 3y ago
new proxy(()=>{}, {get() {}})
- o11c 3y agoI only barely speak JS, but that reminds me of a crazy idea I had to combine proxies, tagged templates, and the old `with` statement ... smoke tests showed it would probably work but I never polished it off.
- basil-rash 3y agoWhat would the end result be/do?
- o11c 3y agoInstead of applying the template immediately using lexical variables, return a function that can be applied later and uses an object's properties (or whatever method of computation you want). Only a few variable names are forbidden.