Subject: bug#48479: 28.0.50; Crash on `read--expression'

From: Mattias Engdegård <[email-masked]>
Date: Tue, 18 May 2021 17:00:33 +0200

18 maj 2021 kl. 13.29 skrev Eli Zaretskii <[email-masked]>:

> What would be the advantage of making it an error?

Detecting mistakes, early. There are many possible reasons for making ones; misplaced brackets is but one.

In the Lisp implementation tradition we do not benefit from a monolithic parser that verifies all aspects of the grammar in one go, so extra care has to be taken in each special form. A sloppy parse is unhelpful: it hides mistakes and impedes backward-compatible language evolution. There is no advantage to it.

Furthermore, reporting syntax errors as warnings but still accepting the code really makes no sense, other as a temporary measure to avoid breaking invalid code right away (if that is seen as something positive).