Re: Syntax, expressiveness and the beauty of Tcl



Stephan Kuhagen wrote:

One point on the wiki-page was the syntax for math expressions like

x=a+b

in a "normal" language (whatever this means) which is

set x [expr $a+$b]


My personal favourite is to do [interp alias {} expr {} =] so I can
write:

set x [ = $a + $b ]

which in a way looks a little normal again albeit with added [] noise.
Of course for maximum speed I'd have to write:

set x [= { $a + $b }]

with a lot more noise: [{}]. But it's good enough for me. And it's
compact enough for direct calculations in Tk:

label .l -width [= 150+$a] -height [= $a+$b]

and it also reads quite nice (width "equals" 150 "plus" $a).

.



Relevant Pages

  • Re: Receiver sensitivity- Packet Detection v/s Packet capture
    ... I understand the eternal presence of noise. ... In presence of noise, the detection procedure will be based on the error probability. ... Given that the transmitter speaks in a given language, is it possible that some receiver will know someone is speaking and still not able to intercept? ... One feat of low-power communication that I know was done this way used 3 watts* on ten meters to communicate between Lakewood NJ USA and Brisbane Australia. ...
    (comp.dsp)
  • Re: programming languages (etc) "web popularity" fun
    ... Although juxtaposing "programming" to the search, ... If a language was called, for example, 'and', we'd NEVER ... > to eliminate classes of noise. ... So, I've made a 2nd release of my script, more targeted at those ...
    (comp.lang.python)
  • Re: Receiver sensitivity- Packet Detection v/s Packet capture
    ... I understand the eternal presence of noise. ... In the example of "Mumble mumble umph" kind of signal, ... transmitter speaks in a given language, ...
    (comp.dsp)
  • Re: This Music "Should" Be Heard
    ... Noise is noise. ... clash, clash and clash. ... that we know and that are talking a language that we do not understand. ... What is a beautiful work? ...
    (rec.music.classical.guitar)
  • Re: [2.6 patch] kconfig: remove the unused "requires" syntax
    ... Simple, see the attached patch. ... It's not as if this noise was big compared to the diff between two Linux ... The additional syntax doesn't hurt anyone, thus I prefer the simpler change. ... | T_REQUIRES expr T_EOL ...
    (Linux-Kernel)