Article View: comp.lang.c
Article #2126Re: stupid cascade of errors
From: Janis Papanagnou
Date: Thu, 03 Dec 2026 06:24
Date: Thu, 03 Dec 2026 06:24
47 lines
3214 bytes
3214 bytes
On 2026-12-03 06:40, Steven G. Kargl wrote:
> On Wed, 2 Dec 2026 21:17:36 +0100, fir wrote:
>
>> when you do a mistake and say left one not needed ) or }
>> compiler make very long cascade of idiotic errors
>>
>> do they really must be so stupid?
>
> It seems that you may be looking at the issue wrong.
> Modern editors/IDE have syntax highlighting and the
> ability to display matching () and {}. Heck, vi has
> been able to display matching symbols for 30+ years.
> Perhaps, the issue is a stupid compiler, but an
> inattentive programmer.
Well, editor support and compiler diagnostics are quite
different (and basically independent) things here.
A friend took that even further with 'vi'; whenever he
writes something like, say, "if<Tab>" a complete frame
with parentheses and braces was created (with marks for
the condition and statements) (that could be jumped to
by <Tab>). So the matching (...) and {...} weren't a
problem since they were already generated pair-wise.
The point I see quoted from "fir", OTOH, is a valid
programmer-request and typically tried to be addressed
by compiler writers; to clearly identify not only the
origin of an error, but also to not create aftereffects
but find a good synchronization point to continue for a
sensible error diagnostics. That's easier or harder and
certainly depending on the specific language, and at the
end the compiler writers should handle that as good as
possible.
Concerning the quoted "idiotic errors" of "stupid" people
we should of course also appreciate that it's first of
all the inattentive/sloppy/"stupid" programmer to blame,
and using tools' support (as you suggest) a sensible way
to address personal writing disfunctionalities.
(Disclaimer: As I don't read fir's posts I'm not quite
sure what his concrete problem actually is/was and who
it is he blames, the C-language, a compiler tool, etc.)
Janis
Technical Details
Message-ID:
<11er1vj$2j9g5$3@dont-email.me>Path:
mbox-mo1.pugleaf.net!srl.newsdeef.eu.MISMATCH!feed-eu-txt.newsdeef.eu!feed-eu-ch.newsdeef.eu!srl.newsdeef.eu!news.hispagatos.org!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mailReferences:
<11epud7$3fup6$1@dont-email.me> <11eqvbn$3uj7j$1@dont-email.me>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srl.newsdeef.eu.MISMATCH!feed-eu-txt.newsdeef.eu!feed-eu-ch.newsdeef.eu!srl.newsdeef.eu!news.hispagatos.org!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail From: Janis Papanagnou <janis_papanagnou+ng@hotmail.com> Newsgroups: comp.lang.c Subject: Re: stupid cascade of errors Date: Thu, 3 Dec 2026 07:24:51 +0100 Organization: A noiseless patient Spider Lines: 47 Message-ID: <11er1vj$2j9g5$3@dont-email.me> References: <11epud7$3fup6$1@dont-email.me> <11eqvbn$3uj7j$1@dont-email.me> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Thu, 03 Dec 2026 06:24:52 +0000 (UTC) Injection-Info: dont-email.me; logging-data="2729477"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18tpX+cc0mCn3iV3eQ4VlgY"; posting-host="d88291cf9be391e7dfa6b32a61cc7f8d" User-Agent: Mozilla Thunderbird Cancel-Lock: sha1:r/5AktqY1RMBIGWWjbf7dm9+jBI= sha256:QuNYxoWmkDpt7ofzXJsEi0W6fKjIbn9k2hA7G6qEs1M= sha1:19U4XL6+8bcXUztxZ+uquW7Okzs= sha256:dgGs1oKpKCbfuoB6U0lxVe7WfCwZNNEqmykVKb8rCPU= Content-Language: en-US In-Reply-To: <11eqvbn$3uj7j$1@dont-email.me>