I remember many threads here where people argued, if {*} in 8.5 is
ugly, or even not really a syntax extension but a keyword and such. I
never had a real feeling for it, since I was very happy with the
[eval] workarounds (some years from now, they may be called [evil
workarounds] because of their probably much worse performance... ;-)
Now I just read the wiki page about Directory recursion (http://
wiki.tcl.tk/17275) and found a very convincing example of {*}
usage.The first convincing for me, because it's simply much more
elegant using {*}.
Nevertheless, there's one question: What's the name of the
bracestarbrace-thingy? Does it have a catchy name, so I can say to my
other freak-programming-languages-fan-friends: Yes, but Tcl has
"bracestarbrace", how about that...?
Regards
Stephan
I believe it's called "argument expansion" and I agree that it's worth
bragging about :)
I know, but I did not ask for the name of the function of
"bracestarbrace", but for the name of the token. Since it is a simple
syntax element, it should have a name of its own. E.g. what the token
is called in the parser (maybe I should look into 8.5s parser code...)
Regards
Stephan
How about "wart"? ;-)
Mark
It's name is "expand".
Donal.
Thanks. (I hoped, it would be more buzzword-like, e.g. *The Deeper
Meaning Star", 'cause it inserts the deeper meaning of what follows
it..., sounding a little more mysterious and fancy to non-
Tclers... ;-)
Stephan
It is called the polyphemus operator.
Jeff
Colin remarked on the chat that it also ascii-art for goatse.cx
Ever since, I have trouble using it - almost feel like going back to
linsert gymnastics. He could have told us before the vote, right?
Interesting name. Does it resemble the one eyed giant of odyssey? :-)
George