[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#49809: [PATCH] Add macro 'pcase-setq'
From: |
Michael Heerdegen |
Subject: |
bug#49809: [PATCH] Add macro 'pcase-setq' |
Date: |
Tue, 10 Aug 2021 05:13:11 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) |
Stefan Monnier <monnier@iro.umontreal.ca> writes:
> > I don't recall why it was not achievable to make `pcase-let'
> > reliably error for non-matching patterns.
>
> The main difficulty is to convince me that it's a good idea.
Oh - that thing again ;-)
Writing down pcase patterns is a bit more error-prone for quite a few
people than writing other Lisp expressions (agreed?). If non-matching
patterns don't error and silently just cause undefined behavior, it's
later harder to find out what went wrong and where. Problems may show
up only much later and then it's harder to locate the cause.
Undefined behavior has no use per se, unless it has a larger impact on
efficiency.
And why again do you think it is not a good idea?
Michael.
- bug#49809: [PATCH] Add macro 'pcase-setq', (continued)
- bug#49809: [PATCH] Add macro 'pcase-setq', Lars Ingebrigtsen, 2021/08/11
- bug#49809: [PATCH] Add macro 'pcase-setq', Michael Heerdegen, 2021/08/12
- bug#49809: [PATCH] Add macro 'pcase-setq', Okam, 2021/08/12
- bug#49809: [PATCH] Add macro 'pcase-setq', Stefan Monnier, 2021/08/12
- bug#49809: [PATCH] Add macro 'pcase-setq', Michael Heerdegen, 2021/08/12
- bug#49809: [PATCH] Add macro 'pcase-setq', Stefan Monnier, 2021/08/13
- bug#49809: [PATCH] Add macro 'pcase-setq', Michael Heerdegen, 2021/08/13
- bug#49809: [PATCH] Add macro 'pcase-setq', Stefan Monnier, 2021/08/07
- bug#49809: [PATCH] Add macro 'pcase-setq', Michael Heerdegen, 2021/08/08
- bug#49809: [PATCH] Add macro 'pcase-setq', Stefan Monnier, 2021/08/09
- bug#49809: [PATCH] Add macro 'pcase-setq',
Michael Heerdegen <=
- bug#49809: [PATCH] Add macro 'pcase-setq', Stefan Monnier, 2021/08/12