| Deutsch English Français Italiano |
|
<6724D1FD.1070901@grunge.pl> View for Bookmarking (what is this?) Look up another Usenet article |
Path: ...!weretis.net!feeder9.news.weretis.net!i2pn.org!i2pn2.org!.POSTED!not-for-mail
From: fir <fir@grunge.pl>
Newsgroups: comp.lang.c
Subject: Re: else ladders practice
Date: Fri, 01 Nov 2024 14:05:01 +0100
Organization: i2pn2 (i2pn.org)
Message-ID: <6724D1FD.1070901@grunge.pl>
References: <3deb64c5b0ee344acd9fbaea1002baf7302c1e8f@i2pn2.org> <vg0t3j$2ruor$1@dont-email.me> <78eabb4054783e30968ae5ffafd6b4ff2e5a5f17@i2pn2.org> <vg2g37$37mh3$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Info: i2pn2.org;
logging-data="451570"; mail-complaints-to="usenet@i2pn2.org";
posting-account="+ydHcGjgSeBt3Wz3WTfKefUptpAWaXduqfw5xdfsuS0";
User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:27.0) Gecko/20100101 Firefox/27.0 SeaMonkey/2.24
To: Bart <bc@freeuk.com>
In-Reply-To: <vg2g37$37mh3$1@dont-email.me>
X-Spam-Checker-Version: SpamAssassin 4.0.0
Bytes: 1772
Lines: 32
Bart wrote:
> In the C, you could probably do something like this:
>
> #define or else if
>
> if (x == a) {}
> or (x == b) {}
> or (x == c) {}
>
>
thsi coud have some sense if this or would be buildin keyword
(but not saying "enough" sense to do that, as writing this
logical "buildings" in code overally is not nice
overally this ilustrates the interesting difference its like
difference in
if a|b|c|d {}
and
if a {} | if b {} | if c {} | if d {}
where | means or
this means that both such ors are needed imo (but id doesnt necessary
mean that building that logical constructions is good imo) (i mean there
are complex way of writing code and simpel pialn ones and plain ones may
be better, if there is some plain one here)