| Deutsch English Français Italiano |
|
<vcv4nu$3aom3$1@dont-email.me> 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: Bart <bc@freeuk.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 20:42:55 +0100 Organization: A noiseless patient Spider Lines: 24 Message-ID: <vcv4nu$3aom3$1@dont-email.me> 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> <87r098q275.fsf@nosuchdomain.example.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Tue, 24 Sep 2024 21:42:54 +0200 (CEST) Injection-Info: dont-email.me; posting-host="95ee115af698825001a4f77256ea5076"; logging-data="3498691"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/RyyspYk+YkD3k0LvtWi1Q" User-Agent: Mozilla Thunderbird Cancel-Lock: sha1:2HYiZLmgr/SRnmxTPgKjU7zEudM= Content-Language: en-GB In-Reply-To: <87r098q275.fsf@nosuchdomain.example.com> Bytes: 2247 On 24/09/2024 20:30, Keith Thompson wrote: > 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. But not new code that uses compound statements, which is will still be compatible with compilers that don't enforce it. And as I said, it doesn't break my generated code, and the first substantial manually written program I tried worked too. Adding such an option, if it doesn't already exist, would be trivial.