Path: ...!news.mixmin.net!news2.arglkargh.de!news.karotte.org!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: rbowman 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: 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> <17bf5ce92e8c43b4$672$1351842$802601b3@news.usenetexpress.com> <17bf8777050f5c1e$7$2218499$802601b3@news.usenetexpress.com> 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.