| ▲ | IshKebab 8 hours ago |
| > best thing about TCL is easy syntax and that everything is a string :) What? That's the worst thing about TCL. |
|
| ▲ | iberator 8 hours ago | parent | next [-] |
| I love it. Living proof that languages doesn't need forced types. Data is Data. It's kinda object programming as visioned in the 70". So easy and trivial language. |
| |
| ▲ | IshKebab 5 hours ago | parent [-] | | > Living proof that languages doesn't need forced types. The opposite surely? TCL is practically dead, and only lingers on in the EDA industry (which has zero taste). Virtually every successful language today has at least a few different basic types for numbers, arrays, strings, maps and so on. | | |
| ▲ | ux266478 2 hours ago | parent | next [-] | | TCL's typicing discipline comes from shell languages and awk, which are decidedly not dead. The overwhelming majority of programmers have less than no taste, so language usage rates in general don't really mean much. | |
| ▲ | bmacho 5 hours ago | parent | prev [-] | | 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. |
|
|
|
| ▲ | antirez 7 hours ago | parent | prev | next [-] |
| It depends on the use case. For instance you open a socket, write there any value you have without serialization, read it in the other side, data transfer done. |
| |
| ▲ | petcat 6 hours ago | parent [-] | | The convenience of not having to marshal data over a network is certainly a use case. But I'll admit that two of the worst programs I ever saw were written in Perl and TCL. Somehow just a big jumble of inscrutable regexes. When "everything is a string" then you have no choice but to literally treat everything as a string. Painful. Very cool project though. | | |
|
|
| ▲ | bmacho 7 hours ago | parent | prev [-] |
| It's only the interface that is of a string. An array is a list of strings with space between, but only for the programmer. The runtime is free to use an actual array. |
| |
| ▲ | IshKebab 5 hours ago | parent [-] | | I'm aware. It's awful because of the implications for the programmer, not the runtime. |
|