For Programmers: Free Programming Magazines  


Home > Archive > Tcl > July 2005 > Re: TCL can't do as much as Perl









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: TCL can't do as much as Perl
John Hermann

2005-07-24, 8:59 pm

I've scanned through this thread and did not find the main
reason I prefer TCL over PERL. In TCL, variable scope
requires declaration of globals. In PERL, you declare
local variables. This single fact also gives argument
about being able to represent the two languages "equally"
(discussed previously in this tread). Can a functionally
equivalent translation be done? Yes. Is the translation
identical? No.

Best Regards,

John Hermann
Buy, Sell, Trade, and Repair Video and Pinball Machines.
Located near Dallas, TX.
http://www.geocities.com/SiliconValley/Circuit/8393
Donal K. Fellows

2005-07-25, 5:35 pm

John Hermann wrote:
> I've scanned through this thread and did not find the main
> reason I prefer TCL over PERL. In TCL, variable scope
> requires declaration of globals. In PERL, you declare
> local variables. This single fact also gives argument
> about being able to represent the two languages "equally"
> (discussed previously in this tread). Can a functionally
> equivalent translation be done? Yes. Is the translation
> identical? No.


The practice of "sensibly chosen defaults" is one of the best things
about Tcl and Tk. While there's often a lot of things you can twiddle,
usually you can leave well alone and get the right effect. While being
more portable to boot too.

Donal.
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com