[Python-Dev] Re: Extended Function syntax

Samuele Pedroni pedronis@bluewin.ch
Sat, 1 Feb 2003 21:52:25 +0100


From: "Guido van Rossum" <guido@python.org>
> I received this from Glyph.  He brings up some interesting use cases
> for thunks.  I guess it could be used for "on" style event handler
> declarations.  Hmm, you could even craft your own case statement with
> his suggestion:
>
>   switch(expr):
>     case(val1):
>       block1
>     case(val2):
>       block2
>     default:
>       block3
>
> This actually makes me worry -- I didn't plan thunks to be the answer
> to all problems.  A new idea that could cause a paradigm landslide is
> not necessarily right.

I don't exactly get how containment relationships are disambiguated at
compilation time?

for sure this is bordering macros' expressivity