Re: Why Python When There Is Perl?

Liste des GroupesRevenir à col advocacy 
Sujet : Re: Why Python When There Is Perl?
De : Physfitfreak (at) *nospam* gmail.com (Physfitfreak)
Groupes : comp.os.linux.advocacy
Date : 24. Mar 2024, 20:37:52
Autres entêtes
Message-ID : <utprtv$1p3a5$3@solani.org>
References : 1 2 3 4 5 6 7 8 9 10 11 12
User-Agent : Mozilla Thunderbird
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

Date Sujet#  Auteur
5 Oct 24 o 

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal