News for hackers. Stuff that matters.
Re:The Tcl Programming Language: A Comprehensive Guide (2nd ... by 7thaccount on Friday April 04, 2025 @06:48PM (#43588555)
Does it still do this? I thought they changed this many years ago?
Re:The Tcl Programming Language: A Comprehensive Guide (2nd ... by smj-edison on Friday April 04, 2025 @07:32PM (#43588841)
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.