Forum OpenACS Q&A: Re: Tcl curly braces

Collapse
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: http://media.wu-wien.ac.at/download/normalize_expressions.tcl

see as well
http://www.openacs.org/forums/message-view?message_id=335900