Re: Syntax, expressiveness and the beauty of Tcl
- From: Christian Gollwitzer <Christian.Gollwitzer@xxxxxxxxxxxxxxx>
- Date: Mon, 30 Oct 2006 15:33:52 +0100
Stephan Kuhagen wrote:
One point on the wiki-page was the syntax for math expressions like
x=a+b
in a "normal" language (whatever this means) which is
set x [expr $a+$b]
I also dislike expr in Tcl, if one has to do lots of math. Especially that in 99% cases one needs to use additional braces. Set is OK. I'd like to have a syntax like
${something}
as an equivalent to [expr {something}]
So one could write
set a ${$b+7}
to get this more compact. However, this not possible in Tcl withou changing the language...
Christian
.
- Follow-Ups:
- Re: Syntax, expressiveness and the beauty of Tcl
- From: Fredderic
- Re: Syntax, expressiveness and the beauty of Tcl
- From: Mark Janssen
- Re: Syntax, expressiveness and the beauty of Tcl
- From: Stephan Kuhagen
- Re: Syntax, expressiveness and the beauty of Tcl
- From: Darren New
- Re: Syntax, expressiveness and the beauty of Tcl
- From: Eckhard Lehmann
- Re: Syntax, expressiveness and the beauty of Tcl
- References:
- Syntax, expressiveness and the beauty of Tcl
- From: Stephan Kuhagen
- Syntax, expressiveness and the beauty of Tcl
- Prev by Date: Re: sqlite
- Next by Date: Re: Handling asynchronous hardware events
- Previous by thread: Re: Syntax, expressiveness and the beauty of Tcl
- Next by thread: Re: Syntax, expressiveness and the beauty of Tcl
- Index(es):
Relevant Pages
|