Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
repsilat
on June 25, 2020
|
parent
|
context
|
favorite
| on:
PEP 622 – Structural Pattern Matching
More vice versa. Guards look more general (being able to express not-equal, and less-than etc), so special semantics for `x,x` only seem warranted if it's very common.
RhysU
on June 26, 2020
[–]
Agreed they're more general. If I have a working guard implementation I can build the x, x case atop it. Meaning, the x, x case can be sugar.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: