Re: Syntax, expressiveness and the beauty of Tcl
- From: Stephan Kuhagen <nospam@xxxxxxxxxx>
- Date: Tue, 31 Oct 2006 10:15:15 +0100
Eckhard Lehmann wrote:
Stephan Kuhagen wrote:
I wasn't aware of this, but I think, I do not like it. It is a question
of what you are used to, of course. But in source-code I prefer writing
infix instead of prefix operators.
The point is, that it resembles the Tcl way better and is easier to
explain.
True. But I think it is very unusual for many people. Maybe both should be
possible in [expr].
In LISP, everything is prefix, so the (+ a b) is no surprise.
Tcl is similar regarding prefix operators. [expr] is the prefix
operator for math but inside it mixes infix notation in - which differs
from the philosophy of prefix operators that you have everywhere else
in Tcl.
Hm, yes, that's true but... it feels uncomfortable. I think [expr] always as
a kind of sub-language in Tcl. So I would prefer [expr]s sub-language to
use infix (at least to stay backward-compatible), but maybe there could be
a switch to [expr] to change the parser so prefix.
Stephan
.
- 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: Eckhard Lehmann
- Re: Syntax, expressiveness and the beauty of Tcl
- From: Kevin Kenny
- Re: Syntax, expressiveness and the beauty of Tcl
- From: MH
- Re: Syntax, expressiveness and the beauty of Tcl
- From: Stephan Kuhagen
- Re: Syntax, expressiveness and the beauty of Tcl
- From: Eckhard Lehmann
- Syntax, expressiveness and the beauty of Tcl
- Prev by Date: Re: Dr. Dobb's Tcl-URL! - weekly Tcl news and links (Oct 31)
- Next by Date: starting a background process
- 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
|