On 2013-10-14, Rich <
mail...@dp100.com> wrote:
> Joey Cuccinardo <
jcu...@tuccicucci.it> wrote:
>: On 2013-10-14, JonoK <
jonk...@fastmail.fm> wrote:
>: > On Sunday, 13 October 2013 21:49:26 UTC+11, Joey Cuccinardo wrote:
>: >> Hi Tclers,
>: >>
>: >> Can somebody recommend me please a good book to learn Tcl? I have
>: >> written a few programs and didn't have much difficulty but somehow
>: >> I feel I'm not getting the Tcl culture. For anything complicated I
>: >> seem to go back to another scripting language I know better.
>: >>
>: >
>: > If you're just browsing, sure get a book. My advice: next time you
>: > have an actual task, force yourself to do it in TCL. Better than
>: > any book. Everything you need to know is in the man pages or the
>: > wiki or google. If you get really stuck, ask here.
>: >
>
>: You are right my friend. This is what I did. But then when the next
>: thing came up I went back to my usual scripting language because
>: pattern matching is so much easier. It takes me longer to do this
>: kind of work in Tcl ...
>
> Care to elaborate on how it is "so much easier"?
Everybody now uses regexp right? But some older languages had their own
system which is more flexible and easier to use. The language I use is
designed for pattern matching not for scripting but most of my scripting
used pattern matching heavily it's a good fit. But big programs become hard
to manage. So I look for another candidate and Tcl has many positive aspects.
> Also, are you not sure it is "easier" and/or faster just because you
> already know the other language well, and do not know Tcl as well? Tcl
> has some very powerful string pattern matching facilities, so it should be
> able to achieve your end results. Just maybe not using the same steps as
> you would use with the other language.
Yes it's possible because I don't know Tcl well but in pattern matching
regexp is more complicated and harder to use than what I'm using. Also I
have very good associative arrays, I think it's included in Tcl but I forgot
the name maybe hashes. It's the reason I'm looking for a book. Not for the
pattern matching which isn't as good in any language not just Tcl but for
the approach to using Tcl the way it should be used.