Yeah 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.
> 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.
I agree with what you're saying, but allow me to go meta.
Comments in Tcl are a bit strange. This works:
But this does not: For the later, you have to insert a semicolon: I get bitten by this time and time again.