Re: Syntax, expressiveness and the beauty of Tcl
- From: "Eckhard Lehmann" <ecky-l@xxxxxx>
- Date: 31 Oct 2006 00:15:08 -0800
Kevin Kenny
TIP #174 (http://tip.tcl.tk/174) is being voted on this week.
It provides exactly the Cambridge Polish (not RPN, the "reverse"
in RPN indicates that the operator comes *last*) notation that
you request.
Sorry for the "reverse".. I meant strict prefix notation of operators
;-).
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. 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.
I also dislike it, because it introduces so
many new commands and will not stop to extend (and floating the namespace)
with new commands until all possible math expressions are included.
There are more math operators expressed in prefix notation anyway:
[sin], [cos], [tan] [abs], [round]... Why not be consistent?
Eckhard
.
- Follow-Ups:
- Re: Syntax, expressiveness and the beauty of Tcl
- From: Stephan Kuhagen
- Re: Syntax, expressiveness and the beauty of Tcl
- From: Fredderic
- 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: 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
- Syntax, expressiveness and the beauty of Tcl
- Prev by Date: Re: examine or describe a proc?
- Next by Date: Re: aolserver+tcl+postgresql+linux=killer web comboo
- 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
|