Forum OpenACS Q&A: Re: Tcl curly braces

19: Re: Tcl curly braces (response to 18)
Posted by Gustaf Neumann on
andrew, let me add to your argument:
... and with the braces, "if" and "expr" can be byte-compiled and be much faster executed (sometimes an order of magnitude). In earlier versions of Tcl (before 8.0), the braces were indeed not needed, but now they are recommended. Unfortunately, there is still much code in 7.* fashion. If you are interested, here is a script that fixes many of such occurrences in current openacs:

see as well