Sascha Desch

Results 58 comments of Sascha Desch
trafficstars

@viridia I think it would be very unfortunate if we had to (import and) use a helper function for dealing with one of the primitive data structures in the language....

I think almost all of the (emotional) discussions and contentions around Pep 622 boil down to the community being split very evenly into two factions - those who'd always liked...

Especially with multiple walrus operators in a single line one easily gets cross-eyed, compare: ``` match value: case a:= Number(), b:= Number(): ... ``` vs ``` match value: case Number()...

@Tobias-Kohn > There should be one-- and preferably only one --obvious way to do it. but I agree that `PATTERN as NAME` really does spell nice because, as you said,...

Using `PATTERN as NAME` also kills two birds with one stone in that people apparently *really really* want to have `as` used somewhere in the syntax for `match` (evident by...

Since `PATTER as NAME` seems to have garnered some some positive attention I'd like to put forward (without a strong opinion on this) an extension, namely `PATTER as NAME if...

Since `case PAT1 if GUARD, case PAT2 if GUARD: ...` already is invalid syntax and raises `SyntaxError` I assumed individual guards for sub patterns could be added later without introducing...

*I hope the authors don't mind me posting here, if not I am happy to remove my comment.* ---- Even if sub-guards never become a thing ```python case (a, b)...

Another variant to differentiate variable binding (store) from comparing to the values of a (global) variable that I have not seen discussed elsewhere is: ### example 1 ```python x =...

@thautwarm - I intended that every occurrence that should load something must be modified with either `global` or `nonlocal`. ```python match example: case Point(global x, global x): ... .... ```...