2 ms·
Tcl has these types as well. They are special strings. Number: string of digits. List: strings separated by space. Dictionary: key value pairs in a list.
by bmacho 8mo ago
Tcl has these types as well. They are special strings.
Number: string of digits. List: strings separated by space. Dictionary: key value pairs in a list.
- IshKebab 8mo agoNo they aren't. Everything is a string. The runtime does some optimisation where it actually does use different types under the hood but they don't change the semantics. If you try to pass a list into a function expecting a string it will just treat the list as a string. No type error or anything, not even at runtime. CMake is the same. Terrible design. Real types are useful.
- deleted 8mo ago[deleted]