Re: Tcl vs. Python
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.tcl archive

Re: Tcl vs. Python

From: Andreas Leitgeb <avl@gamma.logic.tuwien.ac.at>
Date: Tue Sep 27 2005 - 16:09:19 CEST

Kevin Walzer <sw@wordtech-software.com> wrote:
> Esa Heikkinen wrote:
>| This topic may have handled before, but i still ask..
>| What are TCL-users opinions of Python ?
>| What are main advantages and disavantages ?
> I prefer Tcl to Python because of the tight integration with Tk.
> ...

I had a look at Python once, and I disliked on python that
it didn't have a "for"-style loop. That is one, where you
specify an <init, condition, incr>-triple. Pythoners
answered that there is "while", which would be equivalent,
but it isn't: the big difference is the execution of the
"incr"-part, upon "continue".

The other thing is, that in python one cannot make
one-liners for some trivial things, as a newline is
just plain syntactically necessary on some places.
In my eyes, certain one-liners could have been possible
and consistent with pythons philosophy, such as
e.g. a nested "if" in a "while": "while ...: if ...: do_sthg"
or generally, nesting of "one-part" syntactical structures.

PS: I won't argue against the indentation-thing in python. It's kinda cool.
Received on Thu Sep 29 14:39:23 2005