Path: ...!news.mixmin.net!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Keith Thompson 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: <20240922080605.59@kylheku.com> <20240922192726.000061fc@yahoo.com> <86ikul6ruw.fsf@linuxsc.com> 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 writes: > On 24/09/2024 15:36, Tim Rentsch wrote: >> Michael S 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 */