It's not a problem - it lets you do some really neat things that you just can't do in other languages easily. But it is a very very true thing about Tcl.
I was generating functions procedurally, and I was having a scoping problem with one of the inner variables. Naturally, the suggested solution was to do a string replace on your newly created function. Seems obvious in retrospect. :)
Because most people have enough sense to keep bash scripts to a few hundred lines at most and switch to a saner language for anything more complex. In a language like TCL intended for larger-scale development it's just a bugfest waiting to happen.
It's kind of a moot point though. Javascript is unstoppable in the extension language space now.
Really? I've never seen it used as an actual extension language. I've seen Lua, I've seen Scheme, at work we do everything in Python (but that's more extending than embedding), but I've never seen JavaScript as a "extend this C or C++ application" language.
I'm not counting node, because it only exists to run JavaScript. Nor am I counting web browsers, for similar reasons.
Can you give some examples? PDF is the only one I can think of. Most of the existing JavaScript engines seem too heavy-weight to be used as extensions.
Since I'm not in the web-developer bubble, I just don't see JavaScript all that often.
I was generating functions procedurally, and I was having a scoping problem with one of the inner variables. Naturally, the suggested solution was to do a string replace on your newly created function. Seems obvious in retrospect. :)