Y
Hacker News
new
|
ask
|
show
|
jobs
by
generalizations
622 days ago
The biggest weakness IMHO is the inability to comment out elements of an array. Even bash lets you do this and it makes testing and dev so much easier. Really wanted to love it, but that got in the way too many times.
2 comments
lilyball
622 days ago
By arrays you mean something like this?
array set foo { a 1 b 2 c 3 }
If the inability to comment out entries here is a problem, that's also something you can fix, you can write something like
proc decomment body { … }
such that you can then write the following and it will remove commented lines:
array set foo [decomment { a 1 # b 2 c 3 }]
link
cmacleod4
622 days ago
TIP 401 proposed a fix for this but has not progressed so far -
https://core.tcl-lang.org/tips/doc/trunk/tip/401.md
.
link