( ESNUG 310 Item 14 ) ---------------------------------------------- [2/7/99]
Subject: ( ESNUG 308 #1 309 #11) Tcl/Tk Doesn't Cut It; Want Perl Instead
> Does this look like a modern scripting language?
>
> set x [ expr $period / 2 ]
>
> Tcl is a bit better than the current dc_shell language, but only a small
> bit. Why couldn't Synopsys have picked perl or one of the other higher
> level scripting languages?
>
> I tried to write a histogram routine in tcl, for PrimeTime, it was ugly
> and slow. Perl did most of the work in one line with an associatve
> array (hash).
>
> - Don Reid
> Hewlett Packard, ICBD
From: Larrie Carr <Larrie_Carr@pmc-sierra.com>
John,
I agree as I, too, hate set x [expr 2 + 2]! I think languages have evolved
to a certain level of context sensitiveness. Same goes for perl with the $
in the $variable notation.
- Larrie Carr
PMC-Sierra, Inc. Vancouver, B.C., Canada
> From [ A Synopsys Techie ]
>
> Just a note, Tcl has arrays that are similar to the ones in Perl.
From: Don Reid <donr@hpcvcdo.cv.hp.com>
John,
That [ Synopsys Techie ] is right, Tcl does have an array that is similar
to a Perl's hash.
I know I had some problem coding a histogram in Tcl and that Synopsys
R&D could not tell me a better way to do it. I seem to have lost the
code and I cannot recall the details. If I find the code I will follow
up with the specific problem.
- Don Reid
Hewlett Packard, ICBD
|
|