[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#65030: 30.0.50; Check keyword args of make-process
From: |
Mattias Engdegård |
Subject: |
bug#65030: 30.0.50; Check keyword args of make-process |
Date: |
Tue, 8 Aug 2023 11:16:07 +0200 |
8 aug. 2023 kl. 10.52 skrev Robert Pluim <rpluim@gmail.com>:
> I donʼt think any of the `make-process' keywords accept keywords as
> values, but missing values tends to cause catastrophic failure, so I
> donʼt think itʼs that common a mistake.
No, the usefulness of good compiler warnings goes far beyond that. A determined
programmer may eventually get something working despite an error-prone API, but
decent diagnostics will speed up the process manifold by pointing out mistakes
before the code is even run. (With flymake/flycheck, even faster.)
> Mattias> The main objection is that `make-process`, due to its design, is
> often
> Mattias> called indirectly using `apply` which would not trigger the
> Mattias> application of this compiler macro, so perhaps we should improve
> the
> Mattias> error handling of Fmake_process instead.
>
> As long as that improvement results in warnings for mistakes such as
> misspelled keywords, rather than errors.
Of course not. Incorrect arguments detected at run-time should elicit errors,
as they do now.
The point being that for something as complex as make-process they should be
more helpful than just `wrong-type-argument`.
- bug#65030: 30.0.50; Check keyword args of make-process, Helmut Eller, 2023/08/03
- bug#65030: 30.0.50; Check keyword args of make-process, Eli Zaretskii, 2023/08/05
- bug#65030: 30.0.50; Check keyword args of make-process, Stefan Monnier, 2023/08/05
- bug#65030: 30.0.50; Check keyword args of make-process, Eli Zaretskii, 2023/08/06
- bug#65030: 30.0.50; Check keyword args of make-process, Mattias Engdegård, 2023/08/06
- bug#65030: 30.0.50; Check keyword args of make-process, Robert Pluim, 2023/08/08
- bug#65030: 30.0.50; Check keyword args of make-process,
Mattias Engdegård <=
- bug#65030: 30.0.50; Check keyword args of make-process, Robert Pluim, 2023/08/08
- bug#65030: 30.0.50; Check keyword args of make-process, Mattias Engdegård, 2023/08/08
- bug#65030: 30.0.50; Check keyword args of make-process, Eli Zaretskii, 2023/08/08
- bug#65030: 30.0.50; Check keyword args of make-process, Mattias Engdegård, 2023/08/08
- bug#65030: 30.0.50; Check keyword args of make-process, Robert Pluim, 2023/08/08
- bug#65030: 30.0.50; Check keyword args of make-process, Mattias Engdegård, 2023/08/08
- bug#65030: 30.0.50; Check keyword args of make-process, Helmut Eller, 2023/08/08
- bug#65030: 30.0.50; Check keyword args of make-process, Mattias Engdegård, 2023/08/08
- bug#65030: 30.0.50; Check keyword args of make-process, Eli Zaretskii, 2023/08/08
- bug#65030: 30.0.50; Check keyword args of make-process, Mattias Engdegård, 2023/08/08