[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug #65474] spurious "warning: unbalanced 'el' request" when formatting
From: |
Dave |
Subject: |
[bug #65474] spurious "warning: unbalanced 'el' request" when formatting zic(8) from TZDB project |
Date: |
Tue, 2 Apr 2024 19:28:11 -0400 (EDT) |
Follow-up Comment #5, bug #65474 (group groff):
I agree with Paul that -ww is not intended as a style check. But I further
contend that this is not subpar style.
[comment #3 comment #3:]
> The translator is not happy about how the instructions are
> written, they are not informative enough for an unambiguous
> processing.
There is nothing ambiguous about the code in Paul's original example, either
to a human reader who understands basic if/then/else syntax, or to a machine
parser (theoretically, and seemingly in practice, except that something is
confusing groff's parser into emitting a spurious warning). Braces are not
required for this construction in C.
#include <stdio.h>
main() {
if (1 == 2)
puts("Weird");
else if (2 < 1)
puts("Also weird");
else puts("Normal");
}
When "if" statements are nested without braces, there can be ambiguity about
which one an "else" applies to. But there is none here.
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?65474>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
Message not available
- Message not available
- Message not available
- [bug #65474] spurious "warning: unbalanced 'el' request" when formatting zic(8) from TZDB project,
Dave <=
Message not available
Message not available
Message not available
Message not available
Message not available
Message not available
Message not available
Message not available
Message not available
Message not available