Re: Syntax, expressiveness and the beauty of Tcl
- From: Stephan Kuhagen <nospam@xxxxxxxxxx>
- Date: Tue, 31 Oct 2006 06:25:35 +0100
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
.
- Follow-Ups:
- Re: Syntax, expressiveness and the beauty of Tcl
- From: slebetman@xxxxxxxxx
- Re: Syntax, expressiveness and the beauty of Tcl
- References:
- Syntax, expressiveness and the beauty of Tcl
- From: Stephan Kuhagen
- Re: Syntax, expressiveness and the beauty of Tcl
- From: slebetman@xxxxxxxxx
- Syntax, expressiveness and the beauty of Tcl
- Prev by Date: Re: write binary file with struct in tcl
- Next by Date: Re: Dr. Dobb's Tcl-URL! - weekly Tcl news and links (Oct 31)
- Previous by thread: Re: Syntax, expressiveness and the beauty of Tcl
- Next by thread: Re: Syntax, expressiveness and the beauty of Tcl
- Index(es):