4 ms·
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 w
by generalizations 2y 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.
- lilyball 2y agoBy 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 }]
- cmacleod4 2y agoTIP 401 proposed a fix for this but has not progressed so far - https://core.tcl-lang.org/tips/doc/trunk/tip/401.md https://core.tcl-lang.org/tips/doc/trunk/tip/401.md .