Re: Syntax, expressiveness and the beauty of Tcl



slebetman@xxxxxxxxx wrote:

My personal favourite is to do [interp alias {} expr {} =] so I can
write:

set x [ = $a + $b ]

Interesting, but I tried to make it a little C- or Python-like or something
similar, and to get rid of [expr] _and_ [set].

Can't your not be done with "proc = {..." also? This would work also with +,
-, * and so on. Some kind of operator-"overloading".

which in a way looks a little normal again albeit with added [] noise.
Of course for maximum speed I'd have to write:

set x [= { $a + $b }]

But that looks exactly like the original to me.

Stephan
.