2 ms·
There have always been attempts at caching non-string values in Tcl for performance gains, but the semantics are the same. The value’s types are whatever the op
by apgwoz 8mo ago
There have always been attempts at caching non-string values in Tcl for performance gains, but the semantics are the same. The value’s types are whatever the operator requires and an error when not compatible. If, internally, $x is an integer, and you pass it to a string function, well, $x gets temporarily turned into a string. Dynamic with “weak” types.
- pjmlp 8mo agoWhich is exactly the quoted text.
- apgwoz 8mo agoNo. The quoted text says nothing about the value semantics, only the representation…
- pjmlp 8mo agoWell, if you followed the link under the quoted text, you would get the next sentence, > The new objects make it possible to store information in efficient internal forms and avoid the constant translations to and from strings that occurred with the old interpreter.
- apgwoz 8mo agoHuh? I know how it works. My point is different than the representation.