[Python-Dev] Re: PEP 622: Arrow for capture patterns

2020-09-08 Thread Eric Nieuwland
On 5 Sep 2020 Ram Rachum wrote: > > Hi everyone, > > Sorry if this was proposed already. I looked here > https://www.python.org/dev/peps/pep-0622/#alternatives-for-constant-value-pattern, > search for "idea to make lookup semantics the default". I saw that a few > symbols like $ and ? were pro

[Python-Dev] Re: PEP 622: Arrow for capture patterns

2020-09-08 Thread Luciano Ramalho
On Sat, Sep 5, 2020 at 8:31 AM Ram Rachum wrote: > case x: > match Point(-> a, -> b): > ... > match -> whatever: > do_something(whatever) > > I like the arrow because it's easy to imagine the value "entering" the > variable. What do you think? I like t