(no title)
tverbeure | 13 days ago
I couldn't tell you exactly all the thing that are wrong with it. Let's just say that a language where this is ok:
puts "Hello"
But this is not:
puts "Hello" # A comment
shouldn't exist.
tverbeure | 13 days ago
I couldn't tell you exactly all the thing that are wrong with it. Let's just say that a language where this is ok:
puts "Hello"
But this is not:
puts "Hello" # A comment
shouldn't exist.
Treblemaker|13 days ago
I find it curious that so many of the criticisms of tcl are that it doesn't have some feature or behavior of some other language. That has never stopped me from accomplishing what is needed with clear, elegant code.
Rule #10 in the Dodekalogue [0] explains why your preferred comment style is not supported: a command is not expected immediately after the last argument of the previous command. Terminate the command per rule #1 and it is perfectly fine:
puts "Hello" ;# A comment
Isn't that the same number of characters one would type to start a javascript comment? //
Almost any programming language can be beautiful in its simplicity if you work with it on its own terms. tcl doesn't deserve the hate.
[0] Dodekalogue is the common name for the twelve rules that define the syntax and semantics of Tcl. https://wiki.tcl-lang.org/page/Dodekalogue