[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#33414: 27.0.50; inhibit-changing-match-data can be t in syntax-prope
From: |
Philipp |
Subject: |
bug#33414: 27.0.50; inhibit-changing-match-data can be t in syntax-propertize functions, breaking backtrace and looking-at |
Date: |
Sat, 4 Sep 2021 20:39:46 +0200 |
> Am 12.08.2021 um 15:11 schrieb Lars Ingebrigtsen <larsi@gnus.org>:
>
>
> `inhibit-changing-match-data' just seems like a bad interface to me.
Yes, using a public dynamic variable (i.e., public global mutable state) to
influence the behavior of a function is normally a bad idea. Effectively, the
dynamic variable becomes a hidden parameter to the function, and robust code
has to bind it explicitly do override any surprising binding up the call stack.
You normally don't see such a coding style in other programming languages, and
ELisp would be better off without it, too.
- bug#33414: 27.0.50; inhibit-changing-match-data can be t in syntax-propertize functions, breaking backtrace and looking-at,
Philipp <=