3 ms·
I wonder if each of the string args is stable? Then you could just use the first as the key. The JS API where the strings are separate might seem awkward at fi
by spankalee 2y ago
I wonder if each of the string args is stable? Then you could just use the first as the key.
The JS API where the strings are separate might seem awkward at first, but it ends up being a really elegant design.
Deferred evaluation is really powerful and I wish JS had it. It's one of the reasons why Solid has a custom JSX compiler and doesn't use tagged literals... to get the-evaluation you need to user to pass in closures, which is cumbersome.
- Nullabillity 2y agoPython does string interning, so that seems.. dangerous.
- spankalee 2y agoMost managed languages do string interning. But the object passed as the string value doesn't seem to be just a string. It's wrapped in another object, which could have callsite identity.