3 ms·
>You sometimes do not want to have to worry what a line of code means, and TCL does not allow that. Comments in Tcl work perfectly fine.
by na85 13y ago
>You sometimes do not want to have to worry what a line of code means, and TCL does not allow that.
Comments in Tcl work perfectly fine.
- dded 13y ago> Comments in Tcl work perfectly fine I agree with what you're saying, but allow me to go meta. Comments in Tcl are a bit strange. This works: # say howdy puts hello But this does not: puts hello # say howdy For the later, you have to insert a semicolon: puts hello; # say howdy I get bitten by this time and time again.
- na85 13y agoYeah I got bit by that too, once. But it makes sense. If everything is a command, then "#" must also be a command. Essentially like a NOOP. Once I visualized it that way, I never got tripped up by that again. And regardless of this fact, comments exist. They may not be as convenient as using // or // in C its friends, but they exist. To say that tcl does not allow one to know what a complicated line of code means is absurd.
- dded 13y ago> If everything is a command, then "#" must also be a command In my mind, that's an argument that at least something shouldn't be a command. But perhaps it simplifies implementation enough to be worth it. > To say that tcl does not allow one to know what a complicated line of code means is absurd. Fully agree with you there. And for what it's worth, in the Tcl I encounter, there's rarely a line of code that complicated. Perl is often accused of being a write-only language. I think Tcl, if anything, is the opposite. It always seems readable.