Deutsch   English   Français   Italiano  
<87r098q275.fsf@nosuchdomain.example.com>

View for Bookmarking (what is this?)
Look up another Usenet article

Path: ...!news.mixmin.net!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: Keith Thompson <Keith.S.Thompson+u@gmail.com>
Newsgroups: comp.lang.c
Subject: Re: how to make a macro work as a single line if stmt without braces
Date: Tue, 24 Sep 2024 12:30:38 -0700
Organization: None to speak of
Lines: 18
Message-ID: <87r098q275.fsf@nosuchdomain.example.com>
References: <PaWdnZ3R-9zI6nP7nZ2dnZfqn_GdnZ2d@brightview.co.uk>
	<vcm16e$1hm2u$1@dont-email.me> <vcn6m8$1n1vu$1@dont-email.me>
	<vcp0rq$26p7b$1@dont-email.me> <20240922080605.59@kylheku.com>
	<vcpeo0$28shf$1@dont-email.me> <20240922192726.000061fc@yahoo.com>
	<86ikul6ruw.fsf@linuxsc.com> <vcupof$38rb3$2@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain
Injection-Date: Tue, 24 Sep 2024 21:30:39 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="cfe9758cda96ae01dcefed05ed131451";
	logging-data="3495475"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX1/CEwJVoQ5WhxD9WBb2DFvk"
User-Agent: Gnus/5.13 (Gnus v5.13)
Cancel-Lock: sha1:/2+EwEg6XwMYH3hOqmukL18yeUU=
	sha1:5hJ/vK6QsQ5Sm0809nR64L1HReg=
Bytes: 1877

Bart <bc@freeuk.com> writes:
> On 24/09/2024 15:36, Tim Rentsch wrote:
>> Michael S <already5chosen@yahoo.com> writes:
>> The idea of changing the language to always require braces is
>> unnecessary and wasteful (besides being a non-starter for purely
>> practical reasons).
>
> Well, practically it is not difficult.

Changing a compiler to require compound statements would not be
difficult.  Changing the language in that way would be completely
impractical, because it would break existing code.

[...]

-- 
Keith Thompson (The_Other_Keith) Keith.S.Thompson+u@gmail.com
void Void(void) { Void(); } /* The recursive call of the void */