3 ms·
Lists are a first-class object in Tcl, so it's not clear to me how much of a deficiency not having linked lists is. I've had cases where opening a 'C' program
by ArkyBeagle 10y ago
Lists are a first-class object in Tcl, so it's not clear to me how much of a deficiency not having linked lists is.
I've had cases where opening a 'C' program as a pipe and doing heavy number crunching in the 'C' program outperformed native Tcl.
- glv 10y agoWell, right. Tcl was an early example of a trend where key data structures were built into languages and fairly well encapsulated as "one size fits all" abstractions. Computers had become fast enough that for many purposes you didn't have to build a custom list or hash table. That all seems normal to us now, but it was uncommon back then.
- kazinator 10y ago> Lists are a first-class object in Tcl Was that the case in 1994, or are you writing about the current state of Tcl?
- ArkyBeagle 10y agoI believe it's been true since the language first saw light. I didn't get to it until around v7.x around 1995 and lists feature prominently in Osterhout's book.