On 07/08/2020 10:44 AM, Ethan Furman wrote:I like this one. Doesn't it also solve the issue of store vs. load? Everything is stored but the guard clause can look-up.
So namespaced variables only... is there a recommendation on handling global() and local() type variables?
Okay, some off-list discussion clarified that for me:
- easiest way is to use a guard
```
def foo(x, spam):
match x:
case Point(p, q, context=c) if c == spam:
# Match
```