Re: Syntax, expressiveness and the beauty of Tcl



On 31 Oct 2006 04:14:54 -0800,
"suchenwi" <richard.suchenwirth-bauersachs@xxxxxxxxxxx> wrote:

Fredderic schrieb:
So adding support for ${{...}} being equivalent to [expr {...}],
might actually make the syntax cleaner and slightly less confusing
than it already is anyhow, by giving it an actual defined meaning.
I'm not sure whether it's cleaner and less confusing.. but
experimenting shows that the dollar parser's bevavior on braces is
surprising anyway:
45 % set x ${{hello world}}
can't read "{hello world": no such variable
So the first brace encountered is taken for closing, independent of
nesting depth?

*nods* That's exactly the point I was making...!


Fredderic
.



Relevant Pages

  • Re: Syntax, expressiveness and the beauty of Tcl
    ... Fredderic schrieb: ... actually make the syntax cleaner and slightly less confusing than it ... by giving it an actual defined meaning. ... I'm not sure whether it's cleaner and less confusing.. ...
    (comp.lang.tcl)
  • Re: Phils Subversion (Formerly "With" or "by")
    ... I would feel the same about an Australian who used "Y'all". ... If I ask your age as a potential indicator of understanding your usage, you don't say it, but you speculate on other what other people do, and elsewhere. ... confusing, but surely reading good literature from George Elliot forward will offer you plenty of opportunities to be confused. ... It is one thing to coin a new word to convey something in a neater or more expressive way, but when you adopt every day words and give them *your* meaning, you are simply being Humpty Dumpty. ...
    (alt.usage.english)
  • Re: Clueless question about meaning
    ... >> meaning is like confusing a finger pointing at the Moon with the Moon ... founded that all philosophers, when they have been dogmatists, ...
    (sci.lang)
  • Re: Ugh, Winter redux
    ... It comes down to legal distinctions ... You're another one confusing "engineer" and "Professional ... with meaning, half meaning, and wishful thinking. ... (was jclarke at eye bee em dot net) ...
    (rec.motorcycles)
  • Re: unexplained warning message in m{...} regexp
    ... the \-escape eliminates the meaning as delimiter. ... Ok I see but this is rather confusing: ... When searching for single-character delimiters, ... So to have a literal '{' I should escape it if not paired and not ...
    (comp.lang.perl.misc)