Re: Syntax, expressiveness and the beauty of Tcl
- From: Kaitzschu <kaitzschu@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Mon, 30 Oct 2006 22:57:42 +0200
On Mon, 30 Oct 2006, Darren New wrote:
Christian Gollwitzer wrote:
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.
I personally find it most annoying when doing some sorts of parsing,
where I have something like
set x [string range $y [expr {$z-1}] [expr {$z+1}]]
instead of something like
set x [string range $y z-1 z+1]
I.e., personally I miss the ability to use the same sort of constant
offsets you can apply to "end" on the other indecies. But that's just a
personal peeve. :-)
Miss no more!
$ tclsh8.5
% set z 3
3
% string range "A string this is." $z-1 $z+4
string
--
-Kaitzschu
s="TCL ";while true;do echo -en "\r$s";s=${s:1:${#s}}${s:0:1};sleep .1;done
.
- Follow-Ups:
- 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
- References:
- Syntax, expressiveness and the beauty of Tcl
- From: Stephan Kuhagen
- Re: Syntax, expressiveness and the beauty of Tcl
- From: Christian Gollwitzer
- Re: Syntax, expressiveness and the beauty of Tcl
- From: Darren New
- Syntax, expressiveness and the beauty of Tcl
- Prev by Date: Event extension to TinyTcl - or maybe Jim
- Next by Date: Re: sqlite
- 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
|
|