News for hackers. Stuff that matters.
Re:Why Tcl? by ori_b on Tuesday June 20, 2023 @02:04PM (#36408015)
I'm pretty sure your examples behave differently from the example programs.

For example, 'console.log' will pretty-print the data structure, rather than a single space separated line, the duplicate counter only reads from one file (with a hard-coded name) and will not correctly handle errors and move to the next file, and your parallel get doesn't seem to print one duration for all requests to complete.

Re:Why Tcl? by a_wild_dandan on Tuesday June 20, 2023 @06:11PM (#36411411)
Ergo the weasel word "gist" of the examples! :) Want variadic arguments? Wrap your code in `argv.slice(2).forEach(mySweetParser).catch()` or whatever. My point wasn't to scrupulously transpile Tcl to TS via HN dialog boxes. I don't have myself that much. My point is just that the real work in those examples can easily be hogged out faster via other languages, so Tcl isn't an outstanding tool for brevity.