Path: ...!news-out.netnews.com!news.alt.net!us1.netnews.com!sewer!weretis.net!feeder8.news.weretis.net!reader5.news.weretis.net!news.solani.org!.POSTED!not-for-mail From: Physfitfreak Newsgroups: comp.os.linux.advocacy Subject: Re: Why Python When There Is Perl? Date: Sun, 24 Mar 2024 13:37:52 -0500 Message-ID: References: <17be420c4f90bfc7$63225$1585792$802601b3@news.usenetexpress.com> <17be75acfaf8f0f4$2017$3384359$802601b3@news.usenetexpress.com> <17bebbae334656b9$74345$2906873$802601b3@news.usenetexpress.com> <17bf321f9c15028e$2$2218499$802601b3@news.usenetexpress.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Date: Sun, 24 Mar 2024 18:37:51 -0000 (UTC) Injection-Info: solani.org; logging-data="1871173"; mail-complaints-to="abuse@news.solani.org" User-Agent: Mozilla Thunderbird Cancel-Lock: sha1:LMmgG37qYWqVLC4xihjBq0PJqGU= Content-Language: en-US X-Antivirus: Avast (VPS 240324-6, 3/24/2024), Outbound message In-Reply-To: X-Antivirus-Status: Clean X-User-ID: eJwNx8EBwCAIA8CVQEnAcVBg/xHa+x02lc+NoGEwhqz+e63q+c3aU6KvIEc3A1x0gyTSWmmRcl649Jwb3bo+W7UVZA== Bytes: 2588 Lines: 26 On 3/24/2024 11:57 AM, Physfitfreak wrote: > On 3/23/2024 5:06 PM, Lawrence D'Oliveiro wrote: >> Aka “the law of the excluded middle”. Remember, we are working in an >> algebra where variables only have two possible values. If you want to add >> a third value, you end up with a different algebra. > > > Then why would a programmer do that? AND and OR both single out a case > out of four possibilities, by looking for a case when both sides of the > operator match. But IMP seems to be an attempt to introduce and single > out a case where _only_ the left side be 1 and the right side be 0. > > I don't understand what was the motive behind introducing this into > programming language. The same singling out is very easily arranged with > using an AND operator. "if (A = 1) AND (B = 0) then you get a False". > > > > > In other words, you don't have to generate a False to have a False. You can assign a False! -- This email has been checked for viruses by Avast antivirus software. www.avast.com