Version 0 of An implicit {*}$ prefix

Updated 2007-09-17 21:23:27 by jcw

Given Tcl 8.5's {*} expand feature, and an earlier thought experiment about adding a leading "$" to every command (can't recall what wiki page this was) ...

What would a system be like if it worked as follows - this notation:

    set obj {...}
    set result [obj arg1 arg2 arg3]

... would behave as if it had been written as follows in Tcl 8.5:

    set obj {...}
    set result [{*}$obj arg1 arg2 arg3]

It obviously wouldn't be Tcl, since the variable and command namespace get mixed up when you start doing this.

But suppose you didn't care (Tcl 3000!) - would it be useful? convenient? worth looking into?