[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#70597: Problem in pcase-let?
From: |
Stefan Monnier |
Subject: |
bug#70597: Problem in pcase-let? |
Date: |
Sun, 28 Apr 2024 11:22:37 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) |
> Pattern matchers do ... pattern matching.
`pcase` is a pattern matcher.
`pcase-let` is not: it performs "destructuring bindings".
If you want to test if a pattern matches, then you want to use `pcase`
or `pcase-exhaustive`, and not `pcase-let`.
If you want a "one-branch `pcase-exhaustive` with a let-style notation",
we could add such a thing of course, but I'd first like to see some
evidence that it's useful in practice.
Stefan
- bug#70597: Problem in pcase-let?, Marco Antoniotti, 2024/04/26
- bug#70597: Problem in pcase-let?, Bruno Barbier, 2024/04/27
- bug#70597: Problem in pcase-let?,
Stefan Monnier <=
- bug#70597: Problem in pcase-let?, Marco Antoniotti, 2024/04/28
- bug#70597: Problem in pcase-let?, Stefan Monnier, 2024/04/28
- bug#70597: Problem in pcase-let?, Marco Antoniotti, 2024/04/28
- bug#70597: Problem in pcase-let?, Stefan Monnier, 2024/04/28