Re: [Python-Dev] More Switch: Explicit freezing

2006-07-01 Thread Josiah Carlson
Talin <[EMAIL PROTECTED]> wrote: > Here's another stab at the "explicit freezing" school of thought on the > switch semantics. The idea is to borrow the freeze protocol and apply it > to functions. -1 . Freezing was previously questionably useful in the realm of general data structures. Using

[Python-Dev] More Switch: Explicit freezing

2006-07-01 Thread Talin
Here's another stab at the "explicit freezing" school of thought on the switch semantics. The idea is to borrow the freeze protocol and apply it to functions. In this scheme, the default behavior of switch is to rebuild the dictionary each time the switch is executed. However, by calling freez