Deutsch   English   Français   Italiano  
<l69tkkFtmmgU2@mid.individual.net>

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

Path: ...!news.mixmin.net!news2.arglkargh.de!news.karotte.org!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: rbowman <bowman@montana.com>
Newsgroups: comp.os.linux.advocacy
Subject: Re: Why Python When There Is Perl?
Date: 24 Mar 2024 05:56:38 GMT
Lines: 31
Message-ID: <l69tkkFtmmgU2@mid.individual.net>
References: <17be420c4f90bfc7$63225$1585792$802601b3@news.usenetexpress.com>
	<utd86u$1ipcj$1@solani.org>
	<17be75acfaf8f0f4$2017$3384359$802601b3@news.usenetexpress.com>
	<utfol0$1k8j7$1@solani.org>
	<17bebbae334656b9$74345$2906873$802601b3@news.usenetexpress.com>
	<utiopt$2i4i5$1@dont-email.me>
	<17bf321f9c15028e$2$2218499$802601b3@news.usenetexpress.com>
	<utlbto$38pmm$1@dont-email.me>
	<17bf5ce92e8c43b4$672$1351842$802601b3@news.usenetexpress.com>
	<utnk1l$1o32m$3@solani.org>
	<17bf8777050f5c1e$7$2218499$802601b3@news.usenetexpress.com>
	<uto07e$1oa9p$1@solani.org> <uto92s$1oeii$1@solani.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-Trace: individual.net ZRV84ahl+SjgA1zgEMEfKwoB7hQutbr1O0SeKd0GxSQXrJ+gz4
Cancel-Lock: sha1:6yjvkJFIHRvZCyq8BLwIuKxIQX8= sha256:9s70pJajg6BG8ouzw/9o16qUJpmzaIgWw+dhDqLl3TA=
User-Agent: Pan/0.149 (Bellevue; 4c157ba)
Bytes: 2180

On Sat, 23 Mar 2024 23:10:03 -0500, Physfitfreak wrote:

> (A AND B) = (B AND A), and (A OR B) = (B OR A). They commute, so to
> speak. But (A IMP B) doesn't commute. How would computer distinguish
> between A and B then? Does it look at the ordering to see what comes
> first as it goes from left to right, and gives the role of A to that
> one? In that case The programmer needs to damn well know which one of
> the condition he places to the left of IMP and which one to the right!
> This is a new situation.

If I'm interpreting IMP as a bitwise comparison in Basic that comes down 
to

A.bit0 <= B.bit0

A  B
1  1    1
1  0    0
0  1    1
0  0    1

A  B
1  1    1
0  1    1
1  0    0
0  0    1

Sort of awkward. I assume if you're evaluating two 8 or 16 bit values 
you'd return on the first false match. 

Curious. Basic isn't exactly Prolog.