TIP #293: ARGUMENT EXPANSION WITH LEADING {*} =============================================== Version: $Revision: 1.4 $ Author: Miguel Sofer State: Final Type: Project Tcl-Version: 8.5 Vote: Done Created: Thursday, 02 November 2006 URL: https://tip.tcl-lang.org293.html Post-History: Obsoletes: TIP #157 ------------------------------------------------------------------------- ABSTRACT ========== Tcl shall use *{*}* to denote argument expansion, replacing the current *{expand}*. RATIONALE =========== There seems to be a consensus that the functionality of *{expand}* is exactly what was needed, but the syntax could be nicer. The problem, both back in 2003 and today, is that there is no general agreement on which is the best one. However, the issue of ugliness is regularly revived in the mailing lists so it is not going away soon. Moreover, an alpha release in a popular distribution allows the use of *{}* instead of *{expand}*. A compromise solution, *{*}*, is less verbose and "ugly" than *{expand}*, and less prone to typographical errors than plain *{}*. It is inspired using the mnemonic that the character "*" is already used to denote "all items" in other contexts. DETAILED PROPOSAL =================== After two years experience with *{expand}*, this TIP proposes the following amendment to [TIP #157]: 1. The officially sanctioned expansion syntax will henceforth be *{*}*, in replacement of the previous *{expand}*. 2. The usage of both *{expand}* and *{}* will be deprecated. 3. This is a syntax-only change. COMPATIBILITY =============== Note that this TIP removes *{expand}* and *{}* as prefix-syntax, which will break code that users might already have in production based off earlier alpha release of 8.5. COPYRIGHT =========== This document has been placed in the public domain. ------------------------------------------------------------------------- TIP AutoGenerator - written by Donal K. Fellows