3 ms·
Yep! It's called shimmering. The way it works is it has a string and internal representation. When the internal representation is modified it invalidates the st
by smj-edison 2y ago
Yep! It's called shimmering. The way it works is it has a string and internal representation. When the internal representation is modified it invalidates the string version. If the string version is needed later it'll regenerate the string representation. That way it can always be used as a string, but internally it is pretty efficient when it stays as the same type.