[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: scratch/accurate-warning-pos: Solid progress: the branch now bootstr
From: |
Stefan Monnier |
Subject: |
Re: scratch/accurate-warning-pos: Solid progress: the branch now bootstraps. |
Date: |
Sat, 01 Dec 2018 09:30:32 -0500 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) |
[ FWIW, my Helvetic origins want me to stay neutral on this issue. ]
> Also I don't understand why it should be the byte compiler's task to
> check the syntax of expressions for correctness.
I can answer this part: it's simply because most of the work needed to
perform such checks is already done by the compiler for other reasons,
so it's easy to do it within the compiler.
If you want to do it elsewhere, you'll need to either duplicate some of
the compiler's code, or refactor it so it can be used for both.
Refactoring is the ideal solution since it makes it possible to do yet
more things (e.g. think of the Clang project as an example, compared to
having it buried within LLVM), but it can be a lot of work.
In any case, such a refactoring wouldn't make a difference to the
problem at hand: the problem is not "the byte-compiler needs line
numbers" but "the code that emits the warnings needs line numbers" and
then how to make the line-information available to it and make this
information survive through macro-expansion (even though the macros are
not prepared to manipulate annotated source code).
Stefan
- Re: scratch/accurate-warning-pos: Solid progress: the branch now bootstraps., martin rudalics, 2018/12/01
- Re: scratch/accurate-warning-pos: Solid progress: the branch now bootstraps., Eli Zaretskii, 2018/12/01
- Re: scratch/accurate-warning-pos: Solid progress: the branch now bootstraps., Alan Mackenzie, 2018/12/01
- Re: scratch/accurate-warning-pos: Solid progress: the branch now bootstraps., Eli Zaretskii, 2018/12/01
- Re: scratch/accurate-warning-pos: Solid progress: the branch now bootstraps., martin rudalics, 2018/12/01
- Re: scratch/accurate-warning-pos: Solid progress: the branch now bootstraps., Eli Zaretskii, 2018/12/01
- Re: scratch/accurate-warning-pos: Solid progress: the branch now bootstraps., martin rudalics, 2018/12/01
- Re: scratch/accurate-warning-pos: Solid progress: the branch now bootstraps., Eli Zaretskii, 2018/12/01
- Re: scratch/accurate-warning-pos: Solid progress: the branch now bootstraps., Alan Mackenzie, 2018/12/01
- Re: scratch/accurate-warning-pos: Solid progress: the branch now bootstraps., Michael Heerdegen, 2018/12/01
- Re: scratch/accurate-warning-pos: Solid progress: the branch now bootstraps., Alan Mackenzie, 2018/12/01