Guido van Rossum
Guido van Rossum
Scopes aren’t linked the way I describe, identifier searches follow a path. Must revise description of linking.
Nick released a new version of PEP 642 and suggested that it would benefit people looking at the AST or the bytecode compiler if AST nodes for patterns didn't piggy-back...
See his [python-dev message](https://mail.python.org/archives/list/[email protected]/message/4SBR3J5IQUYE752KR7C6432HNBSYKC5X/). Mainly he's still very worried about wildcards and would strongly prefer us to use `?`. He's also worried about mapping patterns defaulting to ignore extra keys....
Since we only allow guards at the top level, one is sometimes required to write things like ``` case [x, y, z] if x >= 0: ``` Here presumably the...
There were some concerns over the typical footgun of writing ``` case FOO: case BAR: ``` (with the intention that `FOO` and `BAR` are global constants, not capture patterns). The...
Several SC members seem to be in favor of adding an `else:` clause. I didn't see anyone express a preference for the indentation (align with `match` or `case`?) but if...
At least two SC members don't like `|` and would prefer we spell this as `or`. Arguments heard include: - Don't buy the argument that many other languages use this...
Several SC members (at least 3) would prefer a different wildcard symbol than `_`, and their preferred symbol is `?`. Some of the reasons heard include: - Don't buy the...
At least one SC member is in favor of one of the alternative indentation schemes that have been proposed. For example ```py match: case : ... [else: ] ``` A...
Towards the end of [this python-dev message](https://mail.python.org/archives/list/[email protected]/message/RHLEKYP65H5R4TPRY3XOU5YPCTUMYT67/), Jean Abou Samra lists some reasons why `PATTERN as name` would be more readable than `name := PATTERN`. I don't recall that we...